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 mt...@apache.org on 2007/04/17 17:48:37 UTC

svn commit: r529686 - /incubator/xap/trunk/codebase/src/xap/widgets/dojo/VerticalPanel.js

Author: mturyn
Date: Tue Apr 17 10:48:34 2007
New Revision: 529686

URL: http://svn.apache.org/viewvc?view=rev&rev=529686
Log:
Enforce default pack=="start".

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

Modified: incubator/xap/trunk/codebase/src/xap/widgets/dojo/VerticalPanel.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/widgets/dojo/VerticalPanel.js?view=diff&rev=529686&r1=529685&r2=529686
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/widgets/dojo/VerticalPanel.js (original)
+++ incubator/xap/trunk/codebase/src/xap/widgets/dojo/VerticalPanel.js Tue Apr 17 10:48:34 2007
@@ -46,6 +46,13 @@
 	widgetType: "VerticalPanel",
 	isContainer: true,
 	
+	postCreate: function(){
+		xap.widgets.dojo.VerticalPanel.superclass.postCreate.call(this) ;	
+		// Set the packing as it is now, primarily to
+		// pick up default value:
+		this.setPack(this._pack) ;
+	},
+	
 	addChild: function(child, overrideContainerNode, pos, ref, insertIndex, flex) {
 		child.domNode.flex = flex;
 		this._totalFlex += flex;
@@ -99,7 +106,7 @@
 		this.align = align;
     },
     
-    setPack: function(pack) {
+    setPack: function(pack) { 
     	this._pack = pack;
     	if (pack == "start") {
 			this.containerNode.style.verticalAlign = "top";