Skip to content

Commit 852c3ea

Browse files
committed
Fix #316
1 parent 1075816 commit 852c3ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/menu/Menu.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ class Menu extends React.Component {
152152
}
153153

154154
show () {
155-
this.setState({active: true});
155+
const { width, height } = this.refs.menu.getBoundingClientRect();
156+
this.setState({active: true, width, height});
156157
}
157158

158159
hide () {

0 commit comments

Comments
 (0)