5 May 2011 11:59 AM #1
Table Layout to fit TabItem
My problem is that I have tab item and inside it I have TableLayout with 2 columns and 2 rows.
Inside each cell there is FormPanel. When I resize my window table stays the same. I would like to have each cell being 50% of width and 50% of height, in other words I would like when I resize my window than each cell is also resizing. Maybe there is some other approach to create layout with 2 rows and 2 columns resizing automatically.
Thanks for Your help!
2 Aug 2011 7:19 AM #2
I have the same requirement.
I need a table with 8 columns to be 100% width of its container. And every columns width has to be automatically adjusted to its content.
Is it possible?
2 Aug 2011 6:28 PM #3
What happens if you call layout() or refresh the view? Id recommend creating a simple button to call relayout on the tabitem or what ever holds the tablelayoutl. If that works, then you could just setup a listener for a resizing event and that should solve it.
Let me know how it goes.
3 Aug 2011 12:07 AM #4
More specifically, I need a table with a simple panel and 7 little forms in every row. Is it possible to specify a relative width of "1/8" for every cell? This way the table would also auto-resize (in the worst case I'd only need to send a doLayout() to the table's container).
By bareflix in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 18 Oct 2010, 9:45 AM
By hirendave in forum Ext 3.x: User Extensions and PluginsReplies: 2Last Post: 23 Jul 2010, 4:04 AM
By joeyjbarrett in forum Ext GWT: DiscussionReplies: 0Last Post: 29 May 2009, 8:06 AM