Bug Tracker

Modify

Ticket #5086 (closed bug: wontfix)

Opened 4 years ago

Last modified 3 years ago

Offset Incorrect on overflow when Body display:none onload

Reported by: zachleat Owned by: brandon
Priority: trivial Milestone: 1.4
Component: offset Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

I doubt the use case here is prevalent enough for this to matter, but I thought it would be useful to have logged in the bug tracker for searchability later on.

When the body (or html) is display: none (and then shown later), offset doesn't work correctly when the page overflows in IE7 and IE6.

It works fine for tags other than the body and html, like a normal div.

See the test case, if the page has a scrollbar, scrolling down to the bottom and clicking the second button should yield a different result than the first button.

Attachments

jquery-test-case.html Download (695 bytes) - added by zachleat 4 years ago.
First button shows correct offset, second button shows incorrect offset (if page overflows)

Change History

Changed 4 years ago by zachleat

First button shows correct offset, second button shows incorrect offset (if page overflows)

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to wontfix

I agree it's a pretty bizarre case.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.