Animal
9 Jan 2009, 7:19 AM
Instead of
Ext.layout.BorderLayout.Region = function(layout, config, pos){
Just
Ext.layout.BorderLayout.Region = function(layout, config){
this.position = config.region;
This way, the docs of BorderLayout can simply say that all child items of the border layout Container accept all the config options of Ext.layout.BorderLayout.Region
It's been a bone of contention for a long time now. People are confused by region and split and margins.
Ext.layout.BorderLayout.Region = function(layout, config, pos){
Just
Ext.layout.BorderLayout.Region = function(layout, config){
this.position = config.region;
This way, the docs of BorderLayout can simply say that all child items of the border layout Container accept all the config options of Ext.layout.BorderLayout.Region
It's been a bone of contention for a long time now. People are confused by region and split and margins.