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
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

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: Thu Jan 19 22:01:42 GMT 2017

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

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