DateTime Control Sizing Glitch using Chinese Locale [message #870577] |
Tue, 08 May 2012 15:39  |
Eclipse User |
|
|
|
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 02:23   |
Eclipse User |
|
|
|
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 06:22  |
Eclipse User |
|
|
|
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/
|
|
|
Powered by
FUDForum. Page generated in 0.03955 seconds