Skip to content

Commit

Permalink
[fixed] OverlayTrigger improvement related to react-bootstrap#353 . H…
Browse files Browse the repository at this point in the history
…elps reduce browser reflows for lots of multiple OverlayTriggers being rendered at once. Before: http://i.imgur.com/e4UZ5l6.png , http://i.imgur.com/Tw39F9t.png After: http://i.imgur.com/bU0f7VY.png
  • Loading branch information
mtetlow committed Feb 25, 2015
1 parent f26e39f commit 66c439f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OverlayTrigger.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ var OverlayTrigger = React.createClass({
},

componentDidMount: function() {
this.updateOverlayPosition();
if (this.props.defaultOverlayShown) {
this.updateOverlayPosition();
}
},

handleDelayedShow: function () {
Expand Down

0 comments on commit 66c439f

Please sign in to comment.