jQuery: The Write Less, Do More JavaScript Library

Ticket #2850 (new bug)

Opened 3 months ago

Last modified 3 months ago

.animate with left & top from percentage to pixel wrong in IE

Reported by: Leonidas Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.4 Component: fx
Version: 1.2.3 Keywords:
Cc: Needs: Review

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.

Attachments

Change History

Changed 3 months ago by Leonidas

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.

Note: See TracTickets for help on using tickets.