//>>built define("dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/window dojo/query dojo/dom-geometry dojo/dom-attr dojo/dom-style dijit/registry ./LayoutBase ../utils/layout ../utils/constraints dojo/sniff".split(" "),function(p,q,m,h,r,f,l,k,g,t,u,v,n){return p("dojox.app.controllers.Layout",t,{constructor:function(a,b){},onResize:function(){this._doResize(this.app);this.resizeSelectedChildren(this.app)},resizeSelectedChildren:function(a){for(var b in a.selectedChildren)a.selectedChildren[b]&& a.selectedChildren[b].domNode&&(this.app.log("in Layout resizeSelectedChildren calling resizeSelectedChildren calling _doResize for w.selectedChildren[hash].id\x3d"+a.selectedChildren[b].id),this._doResize(a.selectedChildren[b]),m.forEach(a.selectedChildren[b].domNode.children,function(a){g.byId(a.id)&&g.byId(a.id).resize&&g.byId(a.id).resize()}),this.resizeSelectedChildren(a.selectedChildren[b]))},initLayout:function(a){this.app.log("in app/controllers/Layout.initLayout event\x3d",a);this.app.log("in app/controllers/Layout.initLayout event.view.parent.name\x3d[", a.view.parent.name,"]");if(!a.view.domNode.parentNode||8==n("ie")&&!a.view.domNode.parentElement)this.app.useConfigOrder?a.view.parent.domNode.appendChild(a.view.domNode):this.addViewToParentDomByConstraint(a);l.set(a.view.domNode,"data-app-constraint",a.view.constraint);this.inherited(arguments)},addViewToParentDomByConstraint:function(a){var b=a.view.constraint;if("bottom"===b)a.view.parent.domNode.appendChild(a.view.domNode);else if("top"===b)a.view.parent.domNode.insertBefore(a.view.domNode,a.view.parent.domNode.firstChild); else if(0