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 07:33
Amandeep Chahal is currently offline Amandeep Chahal
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 07: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: Wed Jul 30 05:23:43 EDT 2014

Powered by FUDForum. Page generated in 0.02641 seconds