Skip to main content

Bug Tracker

Side navigation

#11298 closed bug (invalid)

Opened February 07, 2012 03:57PM UTC

Closed March 01, 2012 08:24AM UTC

Last modified September 23, 2012 12:07AM UTC

Incorrect $(window).width() with 1.7.1 version

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

$(window).width reports the wrong value for browser windows.

It gets stuck at a certain minimum, when the window width is obviously much less.

Firefox 10.0 : 471 px

Opera 11.61 : 115 px

Chromium 18.0.1011 : 152 px

QtWeb 3.7.3 : 148 px

Lunascape 6.3.4 : 113 px

Maxthon : 446 px

Attachments (0)
Change History (6)

Changed February 07, 2012 03:58PM UTC by sindresorhus comment:1

owner: →
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: Open the link and click to "Fork" (in the top menu) to get started.

Changed February 07, 2012 04:40PM UTC by comment:2

status: pendingnew

Tested and confirmed with :

	<script src="jquery-1.7.1.min.js" type="text/javascript"></script>

  <span id="Div_1"></span>

<script type="text/javascript">
$(window).load(function() {

function redimensionner() {

$(window).resize(function () {


Changed February 08, 2012 09:14AM UTC by sindresorhus comment:3

status: newpending

See the box in red, which is red for a reason:

Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Thank you :)

Changed February 15, 2012 04:00PM UTC by anonymous comment:4

Please also check whether your browser is zoomed to 100%.

Changed March 01, 2012 08:24AM UTC by trac-o-bot comment:5

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Changed September 23, 2012 12:07AM UTC by rwaldron comment:6

#12594 is a duplicate of this ticket.