|Label size calculation error for text with consecutive spaces [message #808120]
||Mon, 27 February 2012 12:33
| Amandeep Chahal
Registered: September 2011
I have created a custom dialog class in my RAP application. I have overridden the method 'createDialogArea' to add labels and other controls to my dialog. The issue is for labels with style property 'WRAP' and that have more than one consecutive spaces. The text width for such labels is being determined as if there is a single space.
So when the text is actually displayed, the calculated width is not able to accommodate the text and the label gets cut off.
I have attached a simple dialog code to reproduce this.
[Updated on: Mon, 27 February 2012 12:36]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.06856 seconds