You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2007/04/18 00:16:23 UTC

svn commit: r529814 - /incubator/xap/trunk/codebase/src/xap/widgets/dojo/BorderPanel.js

Author: jmargaris
Date: Tue Apr 17 17:16:23 2007
New Revision: 529814

URL: http://svn.apache.org/viewvc?view=rev&rev=529814
Log:
north and south always span entire width again, didn't realize
layout algorithm was order-dependent

Modified:
    incubator/xap/trunk/codebase/src/xap/widgets/dojo/BorderPanel.js

Modified: incubator/xap/trunk/codebase/src/xap/widgets/dojo/BorderPanel.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/widgets/dojo/BorderPanel.js?view=diff&rev=529814&r1=529813&r2=529814
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/widgets/dojo/BorderPanel.js (original)
+++ incubator/xap/trunk/codebase/src/xap/widgets/dojo/BorderPanel.js Tue Apr 17 17:16:23 2007
@@ -118,7 +118,29 @@
     		return;
     	}
     	this._resizePending = false;
-		dojo.widget.html.layout(this.domNode,this.children);
+    	
+    	var children = [];
+    	
+    	
+    	//have to push them in the right order for north and south
+    	//to always span the entire width
+    	if (this.north){
+    		children.push(this.north);
+    	}
+    	if (this.south){
+    		children.push(this.south);
+    	}
+    	if (this.east){
+    		children.push(this.east);
+    	}
+    	if (this.west){
+    		children.push(this.west);
+    	}
+    	if (this.center){
+    		children.push(this.center);
+    	}
+    	
+		dojo.widget.html.layout(this.domNode,children);
 	}
 }
 );