-
28 Dec 2011 8:46 AM #1
Border Layout Weight configuration
Border Layout Weight configuration
In the PR1 blog entry, Don mentioned this:
Does this mean that we can now have a layout like this without using nested border layouts:You could not configure the layout such that an east or west region had priority over a north or south region. To achieve this, again, you needed to use nested border layouts.
I.E where the East and West regions overlay the south region? If so, how do we go about configuring it that way? I tried to take a look at the source changes but couldn't quite grasp it.Code:[ | | ] [ | | ] [ East | Center | West ] [ |---------| ] [ | South | ]
Thanks,
Tim
-
28 Dec 2011 9:45 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,667
- Vote Rating
- 435
Check this out:
Code:Ext.create('Ext.panel.Panel', { renderTo : Ext.getBody(), width : 400, height : 400, layout : 'border', items : [ { title : 'West', region : 'west', width : 100, weight : -1 }, { title : 'East', region : 'east', width : 100, weight : -1 }, { title : 'South', region : 'south', height : 100, weight : -2 }, { title : 'Center', region : 'center' } ] });Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
28 Dec 2011 11:54 AM #3


Reply With Quote