Modify ↓
Ticket #4258 (closed bug: invalid)
Jquery framework IE7 bug - Get Elemnt size
| Reported by: | simofacc | Owned by: | brandon |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | dimensions | Version: | 1.3.2 |
| Keywords: | element, size, ie7, bug, fix | Cc: | siman@… |
| Blocking: | Blocked by: |
Description
Bug in IE7 which occurs when hovering fast and getting the element size.
Sometimes E.now returns a negative number which throws an exception.Just added an if statement to check that E.now is greater than 0.
New code below:
if(E.elem.style&&E.elem.style[E.prop]!=null){mye=0; if(E.now>0){mye=E.now}E.elem.style[E.prop]=mye+E.unit}else{E.elem[E.prop]=E.now}}
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Can you post a full test case? Also, was your test done with a minified copy of jQuery? The actual code appears to be in fx, not dimensions, but the code above is minified.