#12300 closed bug (worksforme)
$(window).height() and .width() incorrect in IE6 and IE7
Reported by: | ebradsha | Owned by: | ebradsha |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | dimensions | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Using $(window).width() and $(window).height() previously worked correctly with jQuery <1.8.0. In version 1.8.0, a value of 0 is always returned.
I have produced this bug under IE6 and IE7, I have not tested on other versions of IE.
Change History (5)
comment:1 Changed 10 years ago by
Owner: | set to ebradsha |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Component: | unfiled → dimensions |
---|---|
Priority: | undecided → low |
comment:3 Changed 10 years ago by
Status: | pending → new |
---|
JsFiddle doesn't work on Internet Explorer 6 or 7, but here's an example:
You'll need to copy that code into your own HTML doc.
comment:4 Changed 10 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I am using browserstack.com and can run that fiddle fine in IE7. It returns reasonable-looking values that are identical on 1.7.2 and 1.8.0.
I suspect there is some issue with your browser installation, possibly a toolbar or other plugin that is interfering with the code. The fact that your IE7 breaks with jsfiddle but a plugin-free version at browserstack.com does not may be a clue.
comment:5 Changed 10 years ago by
@dmethvin jsFiddle never works on default installs IE6 nor IE7. I've tried using jsFiddle with IE6/IE7 from a variety of different environments and install config--the page never fully loads. If you are able to get jsFiddle to load properly with IE6/IE7, then I suspect there's something non-standard with your browser configuration--perhaps allowing it to run like IE8?
Please provide a jsfiddle.com test showing the broken behavior please!