Skip to main content

Bug Tracker

Side navigation

#12300 closed bug (worksforme)

Opened August 15, 2012 01:16AM UTC

Closed August 15, 2012 03:47PM UTC

Last modified August 15, 2012 04:24PM UTC

$(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.

Attachments (0)
Change History (5)

Changed August 15, 2012 03:04AM UTC by mikesherov comment:1

owner: → ebradsha
status: newpending

Changed August 15, 2012 03:05AM UTC by mikesherov comment:2

component: unfileddimensions
priority: undecidedlow

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

Changed August 15, 2012 03:37PM UTC by ebradsha comment:3

status: pendingnew

JsFiddle doesn't work on Internet Explorer 6 or 7, but here's an example:

http://jsfiddle.net/U8hum/

You'll need to copy that code into your own HTML doc.

Changed August 15, 2012 03:47PM UTC by dmethvin comment:4

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.

Changed August 15, 2012 04:24PM UTC by ebradsha comment:5

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