mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-12 07:34:52 +08:00
Don't show scrollbars if content is not scrollable
This commit is contained in:
parent
533ffd683e
commit
3396f4a46e
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ class Scrollbar extends React.Component
|
||||||
bottom: 0
|
bottom: 0
|
||||||
right: 0
|
right: 0
|
||||||
zIndex: 2
|
zIndex: 2
|
||||||
|
visibility: "hidden" if @state.totalHeight != 0 && @state.totalHeight == @state.viewportHeight
|
||||||
|
|
||||||
_onHandleDown: (event) =>
|
_onHandleDown: (event) =>
|
||||||
handleNode = React.findDOMNode(@refs.handle)
|
handleNode = React.findDOMNode(@refs.handle)
|
||||||
|
|
Loading…
Add table
Reference in a new issue