Skip to content

Commit 2019ad9

Browse files
committed
Update left-nav.jsx
cleaned _updateMenuHeight variables declaration
1 parent b6cca6f commit 2019ad9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/left-nav.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,10 @@ const LeftNav = React.createClass({
223223

224224
_updateMenuHeight() {
225225
if (this.props.header) {
226-
let container = ReactDOM.findDOMNode(this.refs.clickAwayableElement);
227-
let menu = ReactDOM.findDOMNode(this.refs.menuItems);
226+
const menu = ReactDOM.findDOMNode(this.refs.menuItems);
228227
if (menu){
229-
let menuHeight = container.clientHeight - menu.offsetTop;
228+
const container = ReactDOM.findDOMNode(this.refs.clickAwayableElement);
229+
const menuHeight = container.clientHeight - menu.offsetTop;
230230
menu.style.height = menuHeight + 'px';
231231
}
232232
}

0 commit comments

Comments
 (0)