Layout composite weird behaviour [message #741471] |
Wed, 19 October 2011 11:09  |
Eclipse User |
|
|
|
Hi,
I have a composite that create a variable amount of text fields and labels next to each other in a grid layout wiith two columns.
Some of that Text fields are higher then others, depending on how much content is in there.
On a new selection, I dispose every child in the parent container and create the new children. After that I call layout on the parent container to lay out the new content.
Sometimes, I can't figure out when, the textfields are overlapping or they aren't shown at all. The selection is a mouse selection. If, after the first layout, I klick on the same object, everything is rendered fine.
Has anyone ever seen such behaviour and can give me a hint on how to solve this problem? If you need any further information, or maybe a screenshot, let me know. I'll be happy to provide.
Kind regards,
-- artur
|
|
|
|
Re: Layout composite weird behaviour [message #742369 is a reply to message #741980] |
Thu, 20 October 2011 08:38  |
Eclipse User |
|
|
|
Thanks for your reply. It was my bad. Layout(true) does actually work, however since I have a scrolled composite, I had to set the minimum size of that container and I was setting a new size after laying out the controls. I reversed the order and everything seems to work just fine.
|
|
|
Powered by
FUDForum. Page generated in 0.03332 seconds