Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Label size calculation error for text with consecutive spaces
Label size calculation error for text with consecutive spaces [message #808120] Mon, 27 February 2012 12:33
Amandeep Chahal is currently offline Amandeep ChahalFriend
Messages: 85
Registered: September 2011
Location: India
Member
Hi,
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.

Regards,
Aman.

[Updated on: Mon, 27 February 2012 12:36]

Report message to a moderator

Previous Topic:Performance issue with many ComboViewers
Next Topic:Label size calculation error for text with consecutive spaces
Goto Forum:
  


Current Time: Thu Apr 25 14:10:28 GMT 2024

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

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

Back to the top