From 66c439f8d89c7fb34967c77b885c0be4adf40111 Mon Sep 17 00:00:00 2001 From: mikename Date: Wed, 18 Feb 2015 16:40:08 -0700 Subject: [PATCH] [fixed] OverlayTrigger improvement related to #353 . Helps 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 --- src/OverlayTrigger.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OverlayTrigger.jsx b/src/OverlayTrigger.jsx index 574956c693..b706bf91cb 100644 --- a/src/OverlayTrigger.jsx +++ b/src/OverlayTrigger.jsx @@ -119,7 +119,9 @@ var OverlayTrigger = React.createClass({ }, componentDidMount: function() { - this.updateOverlayPosition(); + if (this.props.defaultOverlayShown) { + this.updateOverlayPosition(); + } }, handleDelayedShow: function () {