From 0c0f6a603f73325df418c668f1720ea479e5afdd Mon Sep 17 00:00:00 2001 From: Sergiu Paraschiv Date: Wed, 18 Nov 2015 12:58:08 +0200 Subject: [PATCH 1/2] Fix for #147 --- src/creators/OverlayViewCreator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/creators/OverlayViewCreator.js b/src/creators/OverlayViewCreator.js index f8c9509d..28334584 100644 --- a/src/creators/OverlayViewCreator.js +++ b/src/creators/OverlayViewCreator.js @@ -146,7 +146,7 @@ export default class OverlayViewCreator extends Component { componentDidUpdate (prevProps) { this.getOverlayView().setValues(this.props); - this.getOverlayView()._redraw(this.props.mapPaneName !== prevProps); + this.getOverlayView()._redraw(this.props.mapPaneName !== prevProps.mapPaneName); } componentWillUnmount () { From 5ae95fe4f7615571ce44d56548f6411de818dbe1 Mon Sep 17 00:00:00 2001 From: Sergiu Paraschiv Date: Wed, 18 Nov 2015 13:05:52 +0200 Subject: [PATCH 2/2] Quick fix until PR goes through --- lib/creators/OverlayViewCreator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/creators/OverlayViewCreator.js b/lib/creators/OverlayViewCreator.js index 80785e4e..3fa421cd 100644 --- a/lib/creators/OverlayViewCreator.js +++ b/lib/creators/OverlayViewCreator.js @@ -79,7 +79,7 @@ var OverlayViewCreator = (function (_Component) { key: "componentDidUpdate", value: function componentDidUpdate(prevProps) { this.getOverlayView().setValues(this.props); - this.getOverlayView()._redraw(this.props.mapPaneName !== prevProps); + this.getOverlayView()._redraw(this.props.mapPaneName !== prevProps.mapPaneName); } }, { key: "componentWillUnmount", @@ -197,4 +197,4 @@ var OverlayViewCreator = (function (_Component) { return OverlayViewCreator; })(_react.Component); -exports["default"] = OverlayViewCreator; \ No newline at end of file +exports["default"] = OverlayViewCreator;