mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-19 05:02:40 +08:00
Remove some scrolling
This commit is contained in:
parent
25449fc3d7
commit
977d9fa18e
2
dist/client/ui/layout.js
vendored
2
dist/client/ui/layout.js
vendored
@ -113,7 +113,7 @@ var Layout = function (_React$Component) {
|
||||
var body = _document.body;
|
||||
|
||||
var height = documentElement.clientHeight || body.clientHeight;
|
||||
height -= 15;
|
||||
height -= 20;
|
||||
this.setState({ height: height });
|
||||
}
|
||||
}]);
|
||||
|
@ -58,7 +58,7 @@ class Layout extends React.Component {
|
||||
updateHeight() {
|
||||
const {documentElement, body} = document;
|
||||
let height = documentElement.clientHeight|| body.clientHeight;
|
||||
height -= 15;
|
||||
height -= 20;
|
||||
this.setState({height});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user