|
Re: Label does not resize after changing text in GEF 3.1 [message #194809 is a reply to message #194733] |
Tue, 06 September 2005 13:27 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
Are you saying this was working in 3.0 and now does not in 3.1? What is the
layout of the label's parent container?
"Jose M Beleta" <beleta@attglobal.net> wrote in message
news:dfhnqq$11g$1@news.eclipse.org...
> A Label does not resize itself after changing text using the method
> setText() in GEF 3.1. Neither revalidate or validate change the size to
> accommodate the new text. The only way to solve this issue is to call:
>
> label.setSize(label.getPreferredSize());
>
> Is this the intended behaviour? If this is the case don't you think that
it
> is more complicated and far less intuitive that the 3.0 behaviour.
>
> Jose M Beleta
>
>
>
>
|
|
|
|
Re: Label does not resize after changing text in GEF 3.1 [message #195069 is a reply to message #194733] |
Wed, 07 September 2005 19:37 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
The parent must be validated to position the child. If the parent is the
feedback layer, it has no layout so validate is a no-op.
In 3.0, most figures had a bogus default size of 64x32. Maybe this is the
difference?
"Jose M Beleta" <beleta@attglobal.net> wrote in message
news:dfhnqq$11g$1@news.eclipse.org...
>A Label does not resize itself after changing text using the method
>setText() in GEF 3.1. Neither revalidate or validate change the size to
>accommodate the new text. The only way to solve this issue is to call:
>
> label.setSize(label.getPreferredSize());
>
> Is this the intended behaviour? If this is the case don't you think that
> it is more complicated and far less intuitive that the 3.0 behaviour.
>
> Jose M Beleta
>
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03984 seconds