Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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:


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 mikesherov

Owner: set to ebradsha
Status: newpending

comment:2 Changed 10 years ago by mikesherov

Component: unfileddimensions
Priority: undecidedlow

Please provide a jsfiddle.com test showing the broken behavior please!

comment:3 Changed 10 years ago by ebradsha

Status: pendingnew

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 dmethvin

Resolution: worksforme
Status: newclosed

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 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?

Note: See TracTickets for help on using tickets.