We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6cca6f commit 2019ad9Copy full SHA for 2019ad9
src/left-nav.jsx
@@ -223,10 +223,10 @@ const LeftNav = React.createClass({
223
224
_updateMenuHeight() {
225
if (this.props.header) {
226
- let container = ReactDOM.findDOMNode(this.refs.clickAwayableElement);
227
- let menu = ReactDOM.findDOMNode(this.refs.menuItems);
+ const menu = ReactDOM.findDOMNode(this.refs.menuItems);
228
if (menu){
229
- let menuHeight = container.clientHeight - menu.offsetTop;
+ const container = ReactDOM.findDOMNode(this.refs.clickAwayableElement);
+ const menuHeight = container.clientHeight - menu.offsetTop;
230
menu.style.height = menuHeight + 'px';
231
}
232
0 commit comments