WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/21/2011 09:44:44 PM (9 years ago)
Author:
azaozz
Message:

Fix inconsistent css handling of .wide-screen, see #18198

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r18736 r18743  
    9494<body class="wp-admin no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
    9595<script type="text/javascript">
    96 document.body.className = document.body.className.replace(/no-js/, 'js');
    97 if ( document.body.clientWidth > 1300 )
     96(function(){
     97var bc = document.body.className, w = bc.match(/folded/) ? 1217 : 1330;
     98document.body.className = bc.replace(/no-js/, 'js');
     99if ( document.body.clientWidth > w )
    98100    document.body.className += ' wide-window';
     101})();
    99102</script>
    100103
Note: See TracChangeset for help on using the changeset viewer.