material-design-lite
material-design-lite copied to clipboard
Navbar with fixed header/drawer breaks at certain screen widths
To reproduce:
- Set browser window width to 1000px
- Visit http://www.getmdl.io/components/index.html#layout-section/layout
- Find the "Fixed header and drawer" example

Root cause may be related to the mdl-layout__header

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
Closing as it should now be fixed. Thanks for the comment, @mspl13!