Skip to content

Commit

Permalink
Fix #316
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Mar 6, 2016
1 parent 1075816 commit 852c3ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/menu/Menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ class Menu extends React.Component {
}

show () {
this.setState({active: true});
const { width, height } = this.refs.menu.getBoundingClientRect();
this.setState({active: true, width, height});
}

hide () {
Expand Down

0 comments on commit 852c3ea

Please sign in to comment.