PDA

View Full Version : the position of a fromPanel in window in IE7 has problem



hisuka
22 Jun 2008, 10:21 PM
I created a FramPanel, and then placed it in a window , show the window,
in ie6 and in FF ,there is no problem. but in ie7 it moved. when i click a field in the form or move the window or resize the window , it basks to right position. how to resolve the problem?

i read some bugs about ie7,and saw a mehod to resovle the autoScroll.


Ext.override(
Ext.Panel,{afterRender :function(){
/*the others...*/

if (this.autoScroll) {
this.body.dom.style.overflow = 'auto';
this.body.dom.style.position = 'relative';
}
Ext.Panel.superclass.afterRender.call(this); // do sizing calcs last
this.initEvents();

}});


but this did not work. I really donot know how to resolve it. help me

hisuka
22 Jun 2008, 11:03 PM
[quote=hisuka;185373]I created a FramPanel, and then placed it in a window , show the window,
in ie6 and in FF ,there is no problem. but in ie7 it moved. when i click a field in the form or move the window or resize the window , it basks to right position. how to resolve the problem?

i read some bugs about ie7,and saw a mehod to resovle the autoScroll.


Ext.override(
Ext.Panel,{afterRender :function(){
/*the others...*/

if (this.autoScroll) {
this.body.dom.style.overflow = 'auto';
this.body.dom.style.position = 'relative';
}
Ext.Panel.superclass.afterRender.call(this); // do sizing calcs last
this.initEvents();

}});


but this did not work. I really donot know how to resolve it. help me