Ticket #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: | ||
| Blocking: | Blocked by: |
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
comment:1 Changed 9 months ago by mikesherov
- Owner set to ebradsha
- Status changed from new to pending
comment:2 Changed 9 months ago by mikesherov
- Priority changed from undecided to low
- Component changed from unfiled to dimensions
Please provide a jsfiddle.com test showing the broken behavior please!
comment:3 Changed 9 months ago by ebradsha
- Status changed from pending to 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 9 months ago by dmethvin
- Status changed from new to closed
- Resolution set to worksforme
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 9 months ago by ebradsha
@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 follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
