root / trunk / web / dojo / dijit / layout / LayoutContainer.js @ 12
History | View | Annotate | Download (1.06 KB)
1 | 9 | andrej.cim | /*
|
---|---|---|---|
2 | Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||
3 | Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||
4 | see: http://dojotoolkit.org/license for details
|
||
5 | */
|
||
6 | |||
7 | |||
8 | if(!dojo._hasResource["dijit.layout.LayoutContainer"]){ |
||
9 | dojo._hasResource["dijit.layout.LayoutContainer"]=true; |
||
10 | dojo.provide("dijit.layout.LayoutContainer");
|
||
11 | dojo.require("dijit.layout._LayoutWidget");
|
||
12 | dojo.declare("dijit.layout.LayoutContainer",dijit.layout._LayoutWidget,{baseClass:"dijitLayoutContainer",constructor:function(){ |
||
13 | dojo.deprecated("dijit.layout.LayoutContainer is deprecated","use BorderContainer instead",2); |
||
14 | },layout:function(){ |
||
15 | dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren()); |
||
16 | },addChild:function(_1,_2){ |
||
17 | this.inherited(arguments); |
||
18 | if(this._started){ |
||
19 | dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren()); |
||
20 | } |
||
21 | },removeChild:function(_3){ |
||
22 | this.inherited(arguments); |
||
23 | if(this._started){ |
||
24 | dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren()); |
||
25 | } |
||
26 | }}); |
||
27 | dojo.extend(dijit._Widget,{layoutAlign:"none"}); |
||
28 | } |