fbrctr / fabricator

A tool for building website UI toolkits and style guides
http://fbrctr.github.io/
MIT License
1.11k stars 124 forks source link

body height: 100% leads to buggy scrolling behaviour #242

Open webholics opened 8 years ago

webholics commented 8 years ago

The styleguide currently uses height: 100% with overflow: auto on body if the menu is open. This leads to buggy behaviour with JS widgets which compute the position of an element to absolutely position the widget (e.g. datepickers, custom selects, tooltips, ...) because they are not able to compute the position as expected.

Another problem which has its roots in this styling is that of keeping scroll position after auto-reloading the page. This never worked for me. If I remove height: 100% it does.

So we should think about getting rid of those styles.