Opened 10 years ago
Closed 10 years ago
#12446 closed bug (duplicate)
issue with $(window).height()
Reported by: | Owned by: | ||
---|---|---|---|
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?
Change History (5)
comment:1 Changed 10 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Status: | pending → new |
---|
How can I check that?
Is that depending of doctype?
In my case it is: <!DOCTYPE HTML PUBLIC '-W3CDTD HTML 4.01 TransitionalEN'>
comment:4 Changed 10 years ago by
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,
comment:5 Changed 10 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #12388.
The simplest doctype is always <!doctype html>
and kicks every browser into standards mode.
It sounds like your page may be in Quirks mode, which jQuery does not support. Can you confirm?