Side navigation
#3597 closed bug (worksforme)
Opened November 12, 2008 09:14PM UTC
Closed November 17, 2010 05:36AM UTC
Width, Height, and curCSS methods broken for extensions
Reported by: | thenobot | Owned by: | flesler |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | core | Version: | 1.2.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
See thread at: http://groups.google.com/group/jquery-dev/browse_thread/thread/3e9a8025e36f69d?hl=en
Patch for Width & Height:
1354,1355c1359,1360
< Math.max(document.body["scroll" + name],
document.documentElement["scroll" + name]),
< Math.max(document.body["offset" + name],
document.documentElement["offset" + name])
---
Math.max(document.body ? document.body["scroll" + name] : 0, document.documentElement["scroll" + name]), Math.max(document.body ? document.body["offset" + name] : 0, document.documentElement["offset" + name])
Patch for curCSS:
871c871,876
< var computedStyle = defaultView.getComputedStyle( elem,
null );
---
var computedStyle = null; try { defaultView.getComputedStyle( elem, null ); } catch(e) { // not sure what to do here }
This is against the 1.2.6 release version.