Bug Tracker

Opened 5 years ago

Closed 5 years ago

#14705 closed bug (notabug)

Incorrect document height

Reported by: isak.sky@… Owned by: isak.sky@…
Priority: undecided Milestone: None
Component: unfiled Version:
Keywords: Cc:
Blocked by: Blocking:

Description

$(document.body).height() on www.medium.com gives an incorrect value. It gives values such as 500 px, when the document is clearly several thousand px tall, as you have to scroll several pages down to get to the end.

Related SO question: http://stackoverflow.com/questions/21131957/jquery-returns-wrong-document-height

Change History (3)

comment:1 Changed 5 years ago by dmethvin

Owner: set to isak.sky@…
Status: newpending

Usually this indicates the document is in quirks mode. Please provide a test case.

comment:2 Changed 5 years ago by isak.sky@…

Status: pendingnew

False alarm. Turns out the browser was scrolling a particular div, which made me think the document was taller than it actually was. You can close this ticket.

comment:3 Changed 5 years ago by dmethvin

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.