Last change
on this file since 529 was
483,
checked in by hendrikvanantwerpen, 11 years ago
|
Added Dojo 1.9.3 release.
|
File size:
914 bytes
|
Line | |
---|
1 | define([ |
---|
2 | "dojo/_base/array", |
---|
3 | "dojo/_base/declare", |
---|
4 | "dijit/_Contained", |
---|
5 | "dijit/_WidgetBase" |
---|
6 | ], function(array, declare, Contained, WidgetBase){ |
---|
7 | |
---|
8 | // module: |
---|
9 | // dojox/mobile/Pane |
---|
10 | |
---|
11 | return declare("dojox.mobile.Pane", [WidgetBase, Contained], { |
---|
12 | // summary: |
---|
13 | // A simple pane widget. |
---|
14 | // description: |
---|
15 | // Pane is a simple general-purpose pane widget. |
---|
16 | // It is a widget, but can be regarded as a simple `<div>` element. |
---|
17 | |
---|
18 | // baseClass: String |
---|
19 | // The name of the CSS class of this widget. |
---|
20 | baseClass: "mblPane", |
---|
21 | |
---|
22 | buildRendering: function(){ |
---|
23 | this.inherited(arguments); |
---|
24 | if(!this.containerNode){ |
---|
25 | // set containerNode so that getChildren() works |
---|
26 | this.containerNode = this.domNode; |
---|
27 | } |
---|
28 | }, |
---|
29 | |
---|
30 | resize: function(){ |
---|
31 | // summary: |
---|
32 | // Calls resize() of each child widget. |
---|
33 | array.forEach(this.getChildren(), function(child){ |
---|
34 | if(child.resize){ child.resize(); } |
---|
35 | }); |
---|
36 | } |
---|
37 | }); |
---|
38 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.