Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » MessageBox too Small Using Chinese
MessageBox too Small Using Chinese [message #792091] Mon, 06 February 2012 15:43 Go to next message
Scott Helsby is currently offline Scott HelsbyFriend
Messages: 9
Registered: July 2009
Junior Member
Hello,

We are using RAP 1.4.1.

We have tested a project with RAP in English with minimal fuss.

We are now testing it using Simplified Chinese.

At our login dialog, if there is an issue authenticating the user, we show a MessageBox.

The first time it is presented, it is too small and the message gets cut off.
The rest of the time, it is sized correctly.

I am assuming that this is due to RAP estimating the size of the MessageBox and not getting the chance (since it is a MessageBox?) to update its size. The issue does not happen in English (or at least if it does happen, it is not visibly apparent or as visibly apparent).

Is there a fix or a workaround for Chinese text?

I've attached two PNGs of the Chinese MessageBox's, one showing a badly sized MessageBox and one showing an OK sized MessageBox.

Cheers,

Scott Helsby
begin 644 Chinese MessageBox - OK.PNG
MB5!.1PT*&@H````-24A$4@```.$```!I"`(```!#,M.8`````7-21T(`KLX<
MZ0````1G04U!``"QCPO\804````@8TA230``>B8``("$``#Z````@.@``'4P
M``#J8```.I@``!=PG+I1/```$.Q)1$%4>%L5%46QR\$BT#2:J,5@]O$
M/P@E04E42`R59$S_J'^8J`N)QC](B"&FTVP%NHEK]H_=I'^LV:S#*BTB3>F.
MB`K(T)58%$NK*5M2IBTK.*U0EI:LBWY_Y\][YYT\[,F\^/.>_SOO><<\\K\[[[]C+!!2U@JP7.GAL@P*B#"UK`2@M<^**O=MOS
MG-&)WWS8ORF&#2U@D06`R<,'WG`9W7#@<VQH`=LL8##ZV+[/L*$%;+.`P>CZ
MO6>PH05LLX#!Z(-O]&!#"]AF`8/1LM>ZS79VW\6KG1>_?`:VO_VE&_E?'$SJ
M"1W./@.-'^&CP=]#\Q[-<W#\B!9(RP(&H_>\TJ6W7[SYSV''&1X\_\M7NO@Z
M7X:'B/W3J'3`CVB!K"Q@,%I0]XEJM]3%?WTD`:WQY'#C
MR<0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4ZDS61,NI4ZE3J5.&W5V57L]U=$8@R/J+ZWJFH:X
MKM3I5)V-TO\H4QH:T3_*4+MZ.."F4E]3XEVTPND4)V;355T5PIJ+ADKI3J/?
M(%`)>6ECJ%3_RYE$H54X7>",^JL;\>5-5;Y2+V'EI3N4%H=M$F6TJR=A,E4X
MG>/LJ?)Y"<721B#J!TCROT2L=O_%%X18,@@2T11.QV8-57M]X%I$RJ_,^G`6<D--"WBLB9Z("
MI\+I'*=(?#A.C\Y+4F=3J8?A5.J<ZML%T[U`1D*C%R:4/*$UJY-,-WNJ/*C4
MKYSME-\3F&Z<-`0"5)AWDGV6XE)U1OU>(5/@726G1;$+#N:/
M>W*K<"J<JF:;9*(4*E?J5.I4ZE3JG.JLPT'_IY/9)A/:E'*V_[T[5/?9OMG<
M4@JG`T&GV"4*YY2+%<D\`A1.A3-9,]MDULWT?#>E3J5.I<YDM8!2IU)GLH[-
MZ8E/R?P4I4ZE3J7.9+6`KLX[MV_.YO)8JOSVOY;M^``-#D2WE[ZO6@I88-N'
7[_\?+6R@>JU=DY(`````245.1*Y"8((`
`
end
Re: MessageBox too Small Using Chinese [message #792144 is a reply to message #792091] Mon, 06 February 2012 17:02 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Scott,
it seems that the packed shells (MessageBox shell) are not repacked
after the text size determination enlargement. Please file a bugzilla
about this issue.
Thanks,
Ivan

On 2/6/2012 5:43 PM, Scott Helsby wrote:
> Hello,
>
> We are using RAP 1.4.1.
>
> We have tested a project with RAP in English with minimal fuss.
>
> We are now testing it using Simplified Chinese.
>
> At our login dialog, if there is an issue authenticating the user, we show a MessageBox.
>
> The first time it is presented, it is too small and the message gets cut off.
> The rest of the time, it is sized correctly.
>
> I am assuming that this is due to RAP estimating the size of the MessageBox and not getting the chance (since it is a MessageBox?) to update its size. The issue does not happen in English (or at least if it does happen, it is not visibly apparent or as visibly apparent).
>
> Is there a fix or a workaround for Chinese text?
>
> I've attached two PNGs of the Chinese MessageBox's, one showing a badly sized MessageBox and one showing an OK sized MessageBox.
>
> Cheers,
>
> Scott Helsby

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: MessageBox too Small Using Chinese [message #792253 is a reply to message #792144] Mon, 06 February 2012 19:58 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Thanks for opening the bug 370756. It is fixed in CVS HEAD.
Best,
Ivan

On 2/6/2012 7:02 PM, Ivan Furnadjiev wrote:
> Hi Scott,
> it seems that the packed shells (MessageBox shell) are not repacked
> after the text size determination enlargement. Please file a bugzilla
> about this issue.
> Thanks,
> Ivan
>
> On 2/6/2012 5:43 PM, Scott Helsby wrote:
>> Hello,
>>
>> We are using RAP 1.4.1.
>>
>> We have tested a project with RAP in English with minimal fuss.
>>
>> We are now testing it using Simplified Chinese.
>>
>> At our login dialog, if there is an issue authenticating the user, we
>> show a MessageBox.
>>
>> The first time it is presented, it is too small and the message gets
>> cut off.
>> The rest of the time, it is sized correctly.
>>
>> I am assuming that this is due to RAP estimating the size of the
>> MessageBox and not getting the chance (since it is a MessageBox?) to
>> update its size. The issue does not happen in English (or at least if
>> it does happen, it is not visibly apparent or as visibly apparent).
>>
>> Is there a fix or a workaround for Chinese text?
>>
>> I've attached two PNGs of the Chinese MessageBox's, one showing a
>> badly sized MessageBox and one showing an OK sized MessageBox.
>>
>> Cheers,
>>
>> Scott Helsby
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:MessageBox too Small Using Chinese
Next Topic:IE8: 'object' is null or not an object
Goto Forum:
  


Current Time: Mon Oct 25 05:23:21 GMT 2021

Powered by FUDForum. Page generated in 0.02256 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top