Skip to main content

Bug Tracker

Side navigation

#12446 closed bug (duplicate)

Opened September 03, 2012 12:44PM UTC

Closed September 03, 2012 04:15PM UTC

issue with $(window).height()

Reported by: jeanguy.buon@gmail.com Owned by: jeanguy.buon@gmail.com
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:
Description

Hello,

I updated jQuery to 1.8.1 and have the foolowing issue:

$(window).height() returns the height of the document (including scroll). Before this jQuery upgrade I only had the visible window height.

Could you please fix it?

Attachments (0)
Change History (5)

Changed September 03, 2012 03:35PM UTC by dmethvin comment:1

owner: → jeanguy.buon@gmail.com
status: newpending

It sounds like your page may be in Quirks mode, which jQuery does not support. Can you confirm?

Changed September 03, 2012 03:39PM UTC by jeanguy.buon@gmail.com comment:2

status: pendingnew

How can I check that?

Is that depending of doctype?

In my case it is:

<!DOCTYPE HTML PUBLIC '-W3CDTD HTML 4.01 Transitional//EN'>

Changed September 03, 2012 04:03PM UTC by dmethvin comment:3

Changed September 03, 2012 04:10PM UTC by jeanguy.buon@gmail.com comment:4

OK, my issue is from the doctype.

I'm having some extra issues using the doctype you suggest so I will fixe these little issues and use this new doctype definition.

You can close my ticket!

Regards,

Changed September 03, 2012 04:15PM UTC by dmethvin comment:5

resolution: → duplicate
status: newclosed

Duplicate of #12388.The simplest doctype is always <!doctype html> and kicks every browser into standards mode.