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:How to allow the user open only one or two editors in the same time?
Next Topic:How to set the table column to self-adaption the width according the content?
Goto Forum:
  


Current Time: Fri Nov 28 23:09:20 GMT 2014

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

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