googlearchive / core-scroll-header-panel

Fancy scrolling effects where the header animates between tall and condensed states
19 stars 16 forks source link

Width calculation off in Chrome 41 on Linux #41

Open pengying opened 9 years ago

pengying commented 9 years ago

Since the scroll element is on mainContainer and headerContainer has overflow-y: hidden the width of the two elements do not match.

This results in a header that's offset from mainContainer content.

The solution is to move headerContainer as a child element of mainContainer and change it's css to fixed with a high z-index.