Ticket #2850 (closed bug: invalid)
.animate with left & top from percentage to pixel wrong in IE
| Reported by: | Leonidas | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.4 |
| Component: | effects | Version: | 1.2.3 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Ok, so I have a div, #container, with an img #pointer positioned inside of that. #pointer is set to be positioned absolutely. Now, when I let it animate, it works fine in Firefox. I guess the position is being translated into pixel values and everything works. Now, when viewing this in IE (7), the animation works, but before the animation starts, the #pointer is being moved to a wrong place (it jumps to some, always the same position) and the animation starts from the wrong starting point.
When top: 50% and left: 50%, it looks in IE as if he would put it roughly in 60% and 60% instead. When using some pixel value it works properly.
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.

I suspect it is the calculation in trunk/jquery/src/fx.js line 113 that's broken somehow (or uhm, it's equivalen in version 1.2.3). The calculation just does not yield the proper results on IE.