Hybrid View
-
7 Aug 2009 2:12 AM #1
[2.3.0] IE7 Accordion bug
[2.3.0] IE7 Accordion bug
Ext version tested:
- Ext 2.3.0
Adapter used:- ext
css used:- only default ext-all.css
Browser versions tested against:- IE7
Operating System:- WinXP Pro
Description:- See screenshot. The first one is how it looks in version 2.2.1 and the second one is how it looks in 2.3.0. The problem is only in IE7, all other browsers get it right.
The screenshots are from the examples\layout\accordion.html contained in the Ext SDK.
Screenshot or Video:- attached
-
21 Aug 2009 4:07 AM #2
Done a little bit of debugging and discovered it has to do with this fix (from the change log):
Ext.core.Element- Fix getWidth/getHeight issue.
Looks like IE7 has a bug in the 'clientWidth' dom property. I've made an quick and dirty fix, that seems to work (but might break something else!). Simply reverting to how Ext 2.2.1 did, if IE7:
/TimCode:Ext.override(Ext.Element, { getHeight : function(contentHeight){ var h = Math.max(this.dom.offsetHeight, this.dom.clientHeight) || 0; if(Ext.isIE7) { h = this.dom.offsetHeight || 0; } h = contentHeight !== true ? h : h-this.getBorderWidth("tb")-this.getPadding("tb"); return h < 0 ? 0 : h; }, getWidth : function(contentWidth){ var w = Math.max(this.dom.offsetWidth, this.dom.clientWidth) || 0; if(Ext.isIE7) { w = this.dom.offsetWidth || 0; } w = contentWidth !== true ? w : w-this.getBorderWidth("lr")-this.getPadding("lr"); return w < 0 ? 0 : w; } });
-
27 Aug 2009 12:45 AM #3
nice solution! But this behaviour is not only on IE7!
I have the same problem here with IE6. And your solution works...
Thanks,
Dumbledore
-
31 Aug 2009 1:27 AM #4
I've noticed the same problem. Is there a patch from ext js?
-
2 Sep 2009 12:01 AM #5
Same problem here!
Any news on a fix?
-
6 Sep 2009 8:07 PM #6
Using the SVN version I'm not seeing this happen. Can anyone confirm?
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!


Reply With Quote