From 3396f4a46e493c9bf79c85fb0707a24a994091b0 Mon Sep 17 00:00:00 2001 From: David Chouinard Date: Thu, 10 Mar 2016 17:59:06 -0800 Subject: [PATCH] Don't show scrollbars if content is not scrollable --- src/components/scroll-region.cjsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/scroll-region.cjsx b/src/components/scroll-region.cjsx index aa8b2ebdf..fb2e2c82e 100644 --- a/src/components/scroll-region.cjsx +++ b/src/components/scroll-region.cjsx @@ -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)