-
15 Jul 2009 7:13 AM #1
Does hbox layout replace the RowFit Layout?
Does hbox layout replace the RowFit Layout?
Does anyone know if the new hbox layout in Ext3.0 can replace usage of Ext.ux.layout.RowFitLayout from http://extjs.com/forum/showthread.php?t=17116 ?
-
15 Jul 2009 7:19 AM #2
Yes.. well vbox layout does. It's super flexible.
It lays out in boxes going down the screen.
Takes a bit of playing around to get used to the configs, but it is VERY good.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
15 Jul 2009 7:19 AM #3
hbox takes the place of column layout.
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
15 Jul 2009 7:27 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
While hbox/column and vbox/row-fit can be interchanged in most cases there is still a fundamental difference:
hbox and vbox uses absolute positioning, but column layout is floating and row-fit is static.
Absolute positioning can sometimes affect sizing in legacy layouts.
Also, column layout can span multiple rows which hbox can't.
-
15 Jul 2009 8:05 AM #5
It depends if you nest the rows in columns or columns in rows.
If you have an hbox layout with 3 boxes (3 columns), the first one could be a Container with a vbox layout with two boxes (2 rows). The next two might just be Panels.
So you have row spanning. I think with a bit of fiddling you can do most things.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
15 Jul 2009 10:30 AM #6Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Yes, but with column layout it's easier, e.g.
Code:layout: 'column', defaults: { columnWidth: .5 }, items: [{ title: 'First row - left' },{ title: 'First row - right' },{ title: 'Second row - left' },{ title: 'Second row - right' }]


Reply With Quote