Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Label.computeSize
Label.computeSize [message #89378] Thu, 22 May 2008 06:43 Go to next message
Eclipse UserFriend
I have a ScrolledComposite that contains a label. When pack() is called
on the label (whenever the text changes) the label is given a width,
greater than the ScrolledComposites width, thereby cutting of the last of
the text in the line.

On looking into this I see the Label.computeSize estimates the width but
does not ensure that the width is less than or equal to the width of the
parent.

Is this correct behaviour?

Cheers
Paul
Re: Label.computeSize [message #89407 is a reply to message #89378] Thu, 22 May 2008 07:03 Go to previous message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Paul,

I am pretty sure that this is correct behavior. If you have doubts,
you could create the same scenario in SWT and see how it behaves.

Cheers,
Rüdiger


Paul Norrie wrote:
> I have a ScrolledComposite that contains a label. When pack() is called
> on the label (whenever the text changes) the label is given a width,
> greater than the ScrolledComposites width, thereby cutting of the last
> of the text in the line.
>
> On looking into this I see the Label.computeSize estimates the width but
> does not ensure that the width is less than or equal to the width of the
> parent.
>
> Is this correct behaviour?
>
> Cheers
> Paul
>
Previous Topic:Combo problem about setvisibleCount
Next Topic:Truncated table header texts
Goto Forum:
  


Current Time: Thu May 08 19:30:20 EDT 2025

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

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

Back to the top