24 Jan 2007 12:30 PM #1
Need a BorderLayout with no center
I am building an app that needs a permanent north and south and a collapsible east/west such that if East is expanded, West is collapsed and vice versa.
Unfortunately, center is neither hidable or showable, and collapsing it generates errors.
Any thoughts on how I can accomplish this?
24 Jan 2007 12:57 PM #2
24 Jan 2007 1:15 PM #3
From what I can tell from the code, the center panel has a minimum width of 20. So I manually changed that to 1 and then scaled the east and west regions to 50/50 of the screen width.
It looks OK, but then there are two splitbars on screen which looks sorta ugly. Plus I would have to attach some sort of listener to maintain the split between east and west so that center is never shown. Seems like a waste considering this functionality is already built in between center/west, center/east, et al.
Plus the resizeTo method does not support the center region.
It would be nice if I could get Center to act just like any other region. With a collapse button and the same styling applied to it when it is hidden.
It looks do-able I guess, but seems like way more work than it should be.
25 Jan 2007 1:00 AM #4
- Join Date
- Mar 2007
- Notts/Redwood City
- Vote Rating
I think it's a good idea to make the center optional, so that all Regions can be collapsed, and have the others expand into place.
You might want to look at the layout method in BorderLayout.js. That's the thing which sizes the various elements within the view size.
If you can modify it, and come up with a solution which works with no center Region present, I think you could post it in Enhancement Requests.
By Dams in forum Sencha CmdReplies: 6Last Post: 27 Aug 2008, 12:36 PM
By booshan in forum Ext 2.x: Help & DiscussionReplies: 9Last Post: 4 Apr 2007, 8:21 PM
By rakshith in forum Ext 1.x: BugsReplies: 7Last Post: 14 Dec 2006, 7:26 AM
By robert in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 12 Dec 2006, 12:27 PM
By jack.slocum in forum Ext 1.x: Help & DiscussionReplies: 23Last Post: 22 Nov 2006, 8:29 AM