PDA

View Full Version : LayoutRegion, autoHide -> 1.1b



evant
12 Jun 2007, 10:12 PM
Was trying to use 'autoHide' in a layout region, but it had no effect.



layout = new Ext.BorderLayout(document.body,
{
west:
{
split:true,
initialSize: 220,
minSize: 175,
maxSize: 400,
titlebar: true,
collapsible: true,
animate: true,
autoHide: false
},
center:
{
autoScroll: true
}
});

layout.beginUpdate();
layout.add('west', new Ext.ContentPanel('left', 'Widgets'));
layout.add('center', new Ext.ContentPanel('dashboard-center'));
layout.endUpdate();

Cheers,
Evan

evant
12 Jun 2007, 10:33 PM
Proposed patch in SplitLayoutRegion.js



if(config.hideWhenEmpty || config.hidden){
this.hideSplitter();

this.autoHide = config.autoHide || false;