23 Oct 2010 4:42 AM #1
VBoxLayout wrong height of components after add()
Suppose we have VBoxLayout setup for LayoutContainer, and we added 3 ContentPanels.
After that all 3 panels as expected resized and thay have same height. But than we removed one panel calling LayoutContainer remove() method, and than added new panel to container.
Now is the problem, after addind that last panel VBoxLayout didn't resize all panels that already exists,
so thay all panels doesnt have same height.
What is can be problem with?
23 Oct 2010 4:47 AM #2
You probably dont want to use VBoxLayout for this but RowLayout. But to fully answer this, we will need to see your code in a standalone testcase and a complete description what you want to do
23 Oct 2010 6:49 AM #3
I am using VBoxLayout becouse of auto resizing to full height and full width.
Here is .zip with code https://docs.google.com/leaf?id=0ByY...ZTA3YTE2&hl=uk
Just open in Eclipse and run (you should have Google plugin installed).
When you close panel, at top of screen appear buttons, that buttons (after clicking on them) adds new panels to VBoxLayout, but after adding rest panels in VBox not resized correctly.
28 Oct 2010 9:56 AM #4
28 Oct 2010 10:13 AM #5
I have not run that code. It is not really a simple demonstration of your description. But according to your description you should use a RowLayout here with a RowData of (1,.25d).
By aurelien in forum Ext 2.x: BugsReplies: 2Last Post: 9 Nov 2010, 4:08 AM
By Zolcsi in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 28 Oct 2008, 5:35 AM
By Dr.BuP in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 17 Jan 2008, 9:15 AM