Skip to main content

Bug Tracker

Side navigation

#10000 closed bug (invalid)

Opened August 08, 2011 10:21AM UTC

Closed August 23, 2011 07:55AM UTC

the value got by calling position() in ie8

Reported by: Owned by:
Priority: low Milestone: None
Component: offset Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

I got a problem.

<div style="text-align:center;margin-top:104px; width:740px; height:300px;">

<div class="switch_pic" style="position:relative; width:740px; height:300px; overflow:hidden;">

<div class="arrow_left" style="position:absolute; left:20px;top:135px; z-index:10; cursor:pointer;"><img src="images/left.png" /></div>

<div class="arrow_right" style="position:absolute; left:700px;top:135px; z-index:10; cursor:pointer;"><img src="images/right.png" /></div>

<ul class="content" style="width:10000px; position:absolute; margin:0;">

<li class="elem" style="float:left; width:740px; height:740px; overflow:hidden;"><img src="images/otherbg.jpg" width="740px" height="300px" /></li>

<li class="elem" style="float:left; width:740px; height:740px; overflow:hidden;"><img src="images/subbg.jpg" width="740px" height="300px" /></li>




I run '$(".content").animate({"left":"-740px"},"normal");' first.Then, '$(".content").css("left")' returns a string "-740px",but "$(".content").position()["left"]" returns a int value -739.This occurs in ie8.The value returned in firefox is -740.

Attachments (0)
Change History (2)

Changed August 08, 2011 01:14PM UTC by timmywil comment:1

component: unfiledoffset
owner: →
priority: undecidedlow
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket. Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, we've created this boilerplate: Open the link and click to "Fork" in the top menu.

Changed August 23, 2011 07:55AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!