Bug Tracker

Opened 8 years ago

Closed 8 years ago

#10000 closed bug (invalid)

the value got by calling position() in ie8

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

Description

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>

</ul>

</div>

</div>

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.

Change History (2)

comment:1 Changed 8 years ago by timmywil

Component: unfiledoffset
Owner: set to yang163_yang@…
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: http://jsfiddle.net/rwaldron/da3nM/ Open the link and click to "Fork" in the top menu.

comment:2 Changed 8 years ago by trac-o-bot

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!

Note: See TracTickets for help on using tickets.