Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » DateTime Control Sizing Glitch using Chinese Locale
DateTime Control Sizing Glitch using Chinese Locale [message #870577] Tue, 08 May 2012 19:39 Go to next message
Scott Helsby is currently offline Scott HelsbyFriend
Messages: 9
Registered: July 2009
Junior Member
Hello,

In the English version of our project, we don't see any issues, but when using Chinese text, the first time a DateTime control using SWT.CALENDAR style is shown, the calendar cells are too narrow for the Chinese weekday labels.

Chinese weekday labels are three characters, the same two Chinese characters followed by a day-of-week-specific ordinal. With the cells being too narrow, the labels are virtually identical -- the first two characters plus the first visible pixel column of the ordinal character.

The second time the calendar is shown, the cells are sized large enough to show the weekday labels completely.

It is my understanding that this issue is due to the initial estimate of the size of the characters being off and the RAP server component requiring feedback from the RAP browser component about the correct size so subsequent sizing can be accurate.

Is there some form of workaround that we can do so the user will never see a DateTime control that is too narrow?

Thank-you for reading this post, any help is appreciated,

Scott Helsby
Re: DateTime Control Sizing Glitch using Chinese Locale [message #870620 is a reply to message #870577] Wed, 09 May 2012 06:23 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Scott,
as you already mentioned, this is a problem related to the text size
determination. This is *not* a known issue. Please open a bugzilla to
track the progress on it. Please attach a snippet to reproduce it.
Thanks,
Ivan

On 5/8/2012 10:40 PM, Scott Helsby wrote:
> Hello,
>
> In the English version of our project, we don't see any issues, but
> when using Chinese text, the first time a DateTime control using
> SWT.CALENDAR style is shown, the calendar cells are too narrow for the
> Chinese weekday labels.
>
> Chinese weekday labels are three characters, the same two Chinese
> characters followed by a day-of-week-specific ordinal. With the cells
> being too narrow, the labels are virtually identical -- the first two
> characters plus the first visible pixel column of the ordinal character.
>
> The second time the calendar is shown, the cells are sized large
> enough to show the weekday labels completely.
>
> It is my understanding that this issue is due to the initial estimate
> of the size of the characters being off and the RAP server component
> requiring feedback from the RAP browser component about the correct
> size so subsequent sizing can be accurate.
>
> Is there some form of workaround that we can do so the user will never
> see a DateTime control that is too narrow?
>
> Thank-you for reading this post, any help is appreciated,
>
> Scott Helsby

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: DateTime Control Sizing Glitch using Chinese Locale [message #870681 is a reply to message #870577] Wed, 09 May 2012 10:22 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Scott,
I've opened a bug about this issue:
378957: [DateTime] The calendar cell size is not adapted by TSD
https://bugs.eclipse.org/bugs/show_bug.cgi?id=378957
Best,
Ivan

On 5/8/2012 10:40 PM, Scott Helsby wrote:
> Hello,
>
> In the English version of our project, we don't see any issues, but
> when using Chinese text, the first time a DateTime control using
> SWT.CALENDAR style is shown, the calendar cells are too narrow for the
> Chinese weekday labels.
>
> Chinese weekday labels are three characters, the same two Chinese
> characters followed by a day-of-week-specific ordinal. With the cells
> being too narrow, the labels are virtually identical -- the first two
> characters plus the first visible pixel column of the ordinal character.
>
> The second time the calendar is shown, the cells are sized large
> enough to show the weekday labels completely.
>
> It is my understanding that this issue is due to the initial estimate
> of the size of the characters being off and the RAP server component
> requiring feedback from the RAP browser component about the correct
> size so subsequent sizing can be accurate.
>
> Is there some form of workaround that we can do so the user will never
> see a DateTime control that is too narrow?
>
> Thank-you for reading this post, any help is appreciated,
>
> Scott Helsby

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Help for the filter for the treeviewer with several columns?
Next Topic:Java to Java script conversion
Goto Forum:
  


Current Time: Fri Apr 19 22:47:08 GMT 2024

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

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

Back to the top