Don't show scrollbars if content is not scrollable

This commit is contained in:
David Chouinard 2016-03-10 17:59:06 -08:00
parent 533ffd683e
commit 3396f4a46e

View file

@ -100,6 +100,7 @@ class Scrollbar extends React.Component
bottom: 0
right: 0
zIndex: 2
visibility: "hidden" if @state.totalHeight != 0 && @state.totalHeight == @state.viewportHeight
_onHandleDown: (event) =>
handleNode = React.findDOMNode(@refs.handle)