Changeset 12160
- Timestamp:
- 01/24/08 21:05:28 (6 months ago)
- Files:
-
- 1 modified
-
dijit/trunk/layout/ContentPane.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/layout/ContentPane.js
r11731 r12160 72 72 // class: String 73 73 // Class name to apply to ContentPane dom nodes 74 // TODO: this should be called "baseClass" like in the other widgets 74 75 "class": "dijitContentPane", 76 77 // layout: String/Boolean 78 // false - don't adjust size of children 79 // true - looks for the first sizable child widget (ie, having resize() method) and sets it's size to 80 // however big the ContentPane is 81 // auto - if there is a single sizable child widget (ie, having resize() method), set it's size to 82 // however big the ContentPane is 83 doLayout: "auto", 75 84 76 85 postCreate: function(){ … … 106 115 // Test if we have exactly one widget as a child, and if so assume that we are a container for that widget, 107 116 // and should propogate startup() and resize() calls to it. 117 118 // TODO: if there are two child widgets (a data store and a TabContainer, for example), 119 // should still find the TabContainer 108 120 var childNodes = dojo.query(">", this.containerNode || this.domNode), 109 121 childWidgets = childNodes.filter("[widgetId]"); … … 162 174 } 163 175 164 this._checkIfSingleChild(); 165 if(this._singleChild && this._singleChild.resize){ 166 this._singleChild.resize(this._contentBox); 167 } 176 // if(this.doLayout != "false" && this.doLayout !== false){ 177 this._checkIfSingleChild(); 178 console.log("singlechild " , this._singleChild, " my content box is ", this._contentBox); 179 if(this._singleChild && this._singleChild.resize){ 180 this._singleChild.startup(); 181 this._singleChild.resize(this._contentBox || dojo.contentBox(this.containerNode || this.domNode)); 182 } 183 // } 168 184 169 185 this._onLoadHandler();