| 1 |
define([ |
| 2 |
"dojo/_base/array", |
| 3 |
"dojo/_base/declare", |
| 4 |
"dijit/_Contained", |
| 5 |
"dijit/_WidgetBase" |
| 6 |
], function(array, declare, Contained, WidgetBase){ |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
return declare("dojox.mobile.Pane", [WidgetBase, Contained], { |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
baseClass: "mblPane", |
| 21 |
|
| 22 |
buildRendering: function(){ |
| 23 |
this.inherited(arguments); |
| 24 |
if(!this.containerNode){ |
| 25 |
|
| 26 |
this.containerNode = this.domNode; |
| 27 |
} |
| 28 |
}, |
| 29 |
|
| 30 |
resize: function(){ |
| 31 |
|
| 32 |
|
| 33 |
array.forEach(this.getChildren(), function(child){ |
| 34 |
if(child.resize){ child.resize(); } |
| 35 |
}); |
| 36 |
} |
| 37 |
}); |
| 38 |
}); |