//>>built
define("dijit/layout/_LayoutWidget","dojo/_base/lang,../_Widget,../_Container,../_Contained,../Viewport,dojo/_base/declare,dojo/dom-class,dojo/dom-geometry,dojo/dom-style".split(","),function(h,k,l,m,n,o,d,e,i){return o("dijit.layout._LayoutWidget",[k,l,m],{baseClass:"dijitLayoutContainer",isLayoutContainer:!0,buildRendering:function(){this.inherited(arguments);d.add(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);var a=this.getParent&&this.getParent();
if(!a||!a.isLayoutContainer)this.resize(),this.own(n.on("resize",h.hitch(this,"resize")))}},resize:function(a,d){var c=this.domNode;a&&e.setMarginBox(c,a);var b=d||{};h.mixin(b,a||{});if(!("h"in b)||!("w"in b))b=h.mixin(e.getMarginBox(c),b);var f=i.getComputedStyle(c),g=e.getMarginExtents(c,f),j=e.getBorderExtents(c,f),b=this._borderBox={w:b.w-(g.w+j.w),h:b.h-(g.h+j.h)},g=e.getPadExtents(c,f);this._contentBox={l:i.toPixelValue(c,f.paddingLeft),t:i.toPixelValue(c,f.paddingTop),w:b.w-g.w,h:b.h-g.h};
this.layout()},layout:function(){},_setupChild:function(a){d.add(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a,d){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){d.remove(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}})});