size: '',
max_width: 0,
-
+
+ fit_content: false,
onRender : function(ct, position)
{
return;
}
+ if(!this.fit_content) {
+ this.setSize(w, Roo.lib.Dom.getViewportHeight(true) - 60);
+ return;
+ }
+
var body_childs = this.bodyEl.dom.childNodes;
var full_height = this.headerEl.getHeight() + this.footerEl.getHeight();
for(var i = 0; i < body_childs.length; i++) {
full_height += body_childs[i].offsetHeight;
}
- // this.setSize(w, Math.min(full_height, Roo.lib.Dom.getViewportHeight(true) - 60));
+ this.setSize(w, Math.min(full_height, Roo.lib.Dom.getViewportHeight(true) - 60));
}
},