Skip to content

Commit

Permalink
Update left-nav.jsx
Browse files Browse the repository at this point in the history
cleaned _updateMenuHeight variables declaration
  • Loading branch information
pinturic committed Nov 5, 2015
1 parent b6cca6f commit 2019ad9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/left-nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ const LeftNav = React.createClass({

_updateMenuHeight() {
if (this.props.header) {
let container = ReactDOM.findDOMNode(this.refs.clickAwayableElement);
let menu = ReactDOM.findDOMNode(this.refs.menuItems);
const menu = ReactDOM.findDOMNode(this.refs.menuItems);
if (menu){
let menuHeight = container.clientHeight - menu.offsetTop;
const container = ReactDOM.findDOMNode(this.refs.clickAwayableElement);
const menuHeight = container.clientHeight - menu.offsetTop;
menu.style.height = menuHeight + 'px';
}
}
Expand Down

0 comments on commit 2019ad9

Please sign in to comment.