material-design-lite icon indicating copy to clipboard operation
material-design-lite copied to clipboard

Navbar with fixed header/drawer breaks at certain screen widths

Open mike-north opened this issue 11 years ago • 2 comments

To reproduce:

  1. Set browser window width to 1000px
  2. Visit http://www.getmdl.io/components/index.html#layout-section/layout
  3. Find the "Fixed header and drawer" example

screen shot 2015-07-26 at 7 07 17 pm

Root cause may be related to the mdl-layout__header

screen shot 2015-07-26 at 7 09 10 pm

https://github.com/google/material-design-lite/blob/master/src/layout/_layout.scss#L241-L244

    .mdl-layout--fixed-drawer:not(.is-small-screen) > & {
      margin-left: $layout-drawer-width;
      width: calc(100% - #{$layout-drawer-width});
    }

The drawer slides out at a screen width of 1025px, and the .is-small-screen class is added at < 850px. Between 851px and 1024px, things look strange

mike-north avatar Jul 27 '15 02:07 mike-north

Duplicate of #1185 and #1197 and fixed (but not merged yet) in #1186.

Edit: Merged just now.

mspl13 avatar Jul 27 '15 07:07 mspl13

Closing as it should now be fixed. Thanks for the comment, @mspl13!

addyosmani avatar Jul 27 '15 07:07 addyosmani