[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 03:44:02 UTC 2013
#23817: Collapse menu button not working if browser size is 911px width
----------------------------+------------------
Reporter: alexvorn2 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------
Comment (by azaozz):
WebKit excludes the width of the vertical scrollbar when calculating when
to apply the CSS "@media screen and (max-width: 900px). The calculated
width matches $(window).width(). Firefox and IE > 8 include the scrollbar
width, so after the jQuery normalization $(window).width() is 884px but
window.innerWidth is 900px. 23817.patch is based on that.
Also using window.innerWidth excludes IE < 9 that don't support @media.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23817#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list