Skip to content

Commit

Permalink
Fix popover positioning (#9148)
Browse files Browse the repository at this point in the history
  • Loading branch information
oskosk authored Mar 26, 2018
1 parent 7b6e3a7 commit 7d4e285
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _inc/client/components/popover/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ class Popover extends Component {
return null;
}

this.debug( 'Update position after inject DOM' );
this.setPosition();
this.debug( 'Update position after render completes' );

setTimeout( () => this.setPosition(), 0 );
}

componentWillUnmount() {
Expand Down

0 comments on commit 7d4e285

Please sign in to comment.