jerrybrown5
2 Mar 2008, 6:48 PM
Here is the code to change the default ext behavior to auto hover expand a collapsed border layout region on mouse over. It was used in an application prototype of mine for a whole 10 minutes before it became outright annoying. However, perhaps it will be better utilized in another application, which is why I'm providing it.
Ext.layout.BorderLayout.Region.prototype.getCollapsedEl=Ext.layout.BorderLayout.Region.prototype.getCollapsedEl.createSequence(function(){
if(this.collapsedEl && this.collapseMode !== 'mini' && this.floatable !== false){
this.collapsedEl.on("mouseover", this.collapseClick, this);
}
});
Ext.layout.BorderLayout.Region.prototype.getCollapsedEl=Ext.layout.BorderLayout.Region.prototype.getCollapsedEl.createSequence(function(){
if(this.collapsedEl && this.collapseMode !== 'mini' && this.floatable !== false){
this.collapsedEl.on("mouseover", this.collapseClick, this);
}
});