Modify ↓
Ticket #4687 (closed bug: worksforme)
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: | |
| Blocking: | Blocked by: |
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
Change History
comment:1 Changed 3 years ago by dmethvin
- Status changed from new to closed
- Resolution set to worksforme
comment:3 Changed 15 months ago by anonymous
Same problem occurring on FireFox 10.0.2 (Mac)
Seems to display a minimum of 400 pixels even when browser much narrower...
comment:4 Changed 8 months ago by anonymous
Seems to still be a problem in firefox mac. Min width 348 for me even when window is smaller. Firefox 15
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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