Skip to main content

Bug Tracker

Side navigation

#4687 closed bug (worksforme)

Opened May 27, 2009 09:37AM UTC

Closed November 17, 2010 03:47AM UTC

Last modified April 29, 2013 02:51PM UTC

Incorrect $(window).width() in Firefox

Reported by: dylan Owned by: brandon
Priority: major Milestone: 1.4
Component: dimensions Version: 1.3.2
Keywords: css width Cc:
Blocked by: Blocking:
Description

Firefox (tested: 3.0.10, Mac) reports the wrong value for $(window).width in really narrow browser windows. It gets stuck at a certain minimum, when the window width is obviously much less.

Reproduce:

  • http://dyve.net/demo/jquery.width.html
  • Make your browser Window as narrow as possible
  • Note: no horizontal scrollbars
  • Press "click me" to see $(window).width() value
  • Repeat with Opera or Safari, sae window width, different (more accurate) results
Attachments (0)
Change History (7)

Changed November 17, 2010 03:47AM UTC by dmethvin comment:1

resolution: → worksforme
status: newclosed

Seems to report the correct width in Firefox 3.5 down to 116 pixels.

Changed November 17, 2010 06:41AM UTC by dylan comment:2

Agreed, 3.6 works for me too.

Changed February 26, 2012 05:11AM UTC by anonymous comment:3

Same problem occurring on FireFox 10.0.2 (Mac)

Seems to display a minimum of 400 pixels even when browser much narrower...

Changed October 08, 2012 02:10PM UTC by anonymous comment:4

Seems to still be a problem in firefox mac. Min width 348 for me even when window is smaller. Firefox 15

Changed October 17, 2012 03:13PM UTC by anonymous comment:5

I have the same issue in Firefox 11 - I get stuck at 502

Changed April 29, 2013 02:41PM UTC by anonymous comment:6

... still on windows firefox 20

Changed April 29, 2013 02:51PM UTC by dmethvin comment:7

None of you have provided a test case.