//>>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(g,n,p,q,r,t,h,d,k){return t("dijit.layout._LayoutWidget",[n,p,q],{baseClass:"dijitLayoutContainer",isLayoutContainer:!0,_setTitleAttr:null,buildRendering:function(){this.inherited(arguments);h.add(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);var a=this.getParent&&
this.getParent();a&&a.isLayoutContainer||(this.resize(),this.own(r.on("resize",g.hitch(this,"resize"))))}},resize:function(a,l){var c=this.domNode;a&&d.setMarginBox(c,a);var b=l||{};g.mixin(b,a||{});"h"in b&&"w"in b||(b=g.mixin(d.getMarginBox(c),b));var e=k.getComputedStyle(c),f=d.getMarginExtents(c,e),m=d.getBorderExtents(c,e);b=this._borderBox={w:b.w-(f.w+m.w),h:b.h-(f.h+m.h)};f=d.getPadExtents(c,e);this._contentBox={l:k.toPixelValue(c,e.paddingLeft),t:k.toPixelValue(c,e.paddingTop),w:b.w-f.w,h:b.h-
f.h};this.layout()},layout:function(){},_setupChild:function(a){h.add(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a,l){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){h.remove(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}})});