[wp-trac] [WordPress Trac] #23817: Collapse menu button not working if browser size is 911px width

WordPress Trac noreply at wordpress.org
Tue Jul 9 22:56:10 UTC 2013


#23817: Collapse menu button not working if browser size is 911px width
----------------------------+---------------------
 Reporter:  alexvorn2       |       Owner:  azaozz
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  3.6
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |
----------------------------+---------------------

Comment (by azaozz):

 Some tests: the browser window is resized to the trigger point for `@media
 only screen and (max-width: 900px)`. The JS is:
 {{{
 console.log('jQuery(window).width() = %s, jQuery(window).innerWidth() =
 %s, window.innerWidth = %s', jQuery(window).width(),
 jQuery(window).innerWidth(), window.innerWidth );
 }}}

 **Results**
 - With vertical scrollbar:
 {{{
 Chrome 27.0.1453.116
 jQuery(window).width() = 900, jQuery(window).innerWidth() = 900,
 window.innerWidth = 917

 Firefox 22.0
 jQuery(window).width() = 883, jQuery(window).innerWidth() = 883,
 window.innerWidth = 900

 IE10 10.0.6
 jQuery(window).width() = 883, jQuery(window).innerWidth() = 883,
 window.innerWidth = 900
 }}}

 - Without scrollbar:
 {{{
 Chrome 27.0.1453.116
 jQuery(window).width() = 900, jQuery(window).innerWidth() = 900,
 window.innerWidth = 900

 Firefox 22.0
 jQuery(window).width() = 900, jQuery(window).innerWidth() = 900,
 window.innerWidth = 900

 IE10 10.0.6
 jQuery(window).width() = 900, jQuery(window).innerWidth() = 900,
 window.innerWidth = 900
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/23817#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list