Sha256: 97d9f8a90a3fee7cbffe009924a39c37750f66c60bbd0c1bab45082075bb9857

Contents?: true

Size: 1.93 KB

Versions: 3

Compression:

Stored size: 1.93 KB

Contents

//>>built
define("dojox/app/widgets/Container",["dojo/_base/declare","dojo/_base/lang","dijit/registry","dojo/dom-attr","dojo/dom-geometry","dojo/dom-style","dijit/_WidgetBase","dijit/_Container","dijit/_Contained","dojo/_base/array","dojo/query","../layout/utils","./_ScrollableMixin"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d){
return _1("dojox.app.widgets.Container",[_7,_8,_9,_d],{buildRendering:function(){
if(!this.region){
this.region="center";
_4.set(this.srcNodeRef,"data-app-region","center");
}
this.inherited(arguments);
_6.set(this.domNode,"overflow-x","hidden");
_6.set(this.domNode,"overflow-y","auto");
if(this.scrollable&&this.scrollable=="true"){
this.inherited(arguments);
this.domNode.style.position="absolute";
this.domNode.style.width="100%";
this.domNode.style.height="100%";
}
},startup:function(){
if(this._started){
return;
}
if(this.scrollable&&(this.scrollable=="true")){
this.inherited(arguments);
}
this._started=true;
},resize:function(_e,_f){
var _10=this.domNode;
if(_e){
_5.setMarginBox(_10,_e);
}
var mb=_f||{};
_2.mixin(mb,_e||{});
if(!("h" in mb)||!("w" in mb)){
mb=_2.mixin(_5.getMarginBox(_10),mb);
}
var cs=_6.getComputedStyle(_10);
var me=_5.getMarginExtents(_10,cs);
var be=_5.getBorderExtents(_10,cs);
var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});
var pe=_5.getPadExtents(_10,cs);
this._contentBox={l:_6.toPixelValue(_10,cs.paddingLeft),t:_6.toPixelValue(_10,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};
this.layout();
},layout:function(){
children=_b("> [data-app-region], > [region]",this.domNode).map(function(_11){
var w=_3.getEnclosingWidget(_11);
if(w){
w.region=_4.get(_11,"data-app-region")||_4.get(_11,"region");
return w;
}
return {domNode:_11,region:_4.get(_11,"data-app-region")||dom.Attr.get(_11,"region")};
});
if(this._contentBox){
_c.layoutChildren(this.domNode,this._contentBox,children);
}
_a.forEach(this.getChildren(),function(_12){
if(!_12._started&&_12.startup){
_12.startup();
}
});
}});
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/app/widgets/Container.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/app/widgets/Container.js
dojox-rails-0.11.0 vendor/assets/javascripts/app/widgets/Container.js