PDA

View Full Version : [OPEN-1437] panel bug in extjs3.3



superxlin
16 Nov 2010, 4:41 PM
3.3 code in panel:


getFrameHeight : function() {

var h = this.el.getFrameWidth('tb') + this.bwrap.getFrameWidth('tb');

h += (this.tbar ? this.tbar.getHeight() : 0) +

(this.bbar ? this.bbar.getHeight() : 0);



if(this.frame){

h += this.el.dom.firstChild.offsetHeight + this.ft.dom.offsetHeight + this.mc.getFrameWidth('tb');

}else{

h += (this.header ? this.header.getHeight() : 0) +

(this.footer ? this.footer.getHeight() : 0);

}

return h;
}
the height this function return is not always correct in ie6.It will make the panel's footbar disappeared in some animations.
so we must correct it as code in 3.2:


getFrameHeight : function() {

var h = Math.max(0, this.getHeight() - this.body.getHeight());



if (isNaN(h)) {

h = 0;

}

return h;
}
:)