size: '',
max_width: 0,
-
+
+ fit_content: false,
onRender : function(ct, position)
{
var w = Math.min(this.max_width, Roo.lib.Dom.getViewportWidth(true) - 30);
+ // for fix height
if(this.height) {
this.setSize(w, this.height);
+ Roo.log('this height??');
+ return;
+ }
+
+ if(!this.fit_content) {
+ Roo.log('not fitting???');
+ 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() + 60;
+ var full_height = this.headerEl.getHeight() + this.footerEl.getHeight();
for(var i = 0; i < body_childs.length; i++) {
+
+ // if(body_childs[i].classList.indexOf('roo-layout-region') * 1 != -1) {
+ // var layout_childs = body_childs[i].childNodes;
+ // for(var j = 0; j < layout_childs.length; j++) {
+ //
+ // }
+ // }
+
full_height += body_childs[i].offsetHeight;
}
return;
}
+ Roo.log('invalid field: ' + f.name);
+
valid = false;
if(!target && f.el.isVisible(true)){