From 4624e11b2d8ea26419f84163a8dffc9c2bf89907 Mon Sep 17 00:00:00 2001
From: Nicholas Libby <nicholas@adevantagetech.com>
Date: Thu, 3 Jan 2019 12:34:41 -0800
Subject: [PATCH] stretchedChecked should cause this to stop running or you'll
 possibly end up with an infinite loop.

---
 src/Popup.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Popup.js b/src/Popup.js
index 97ab8003..3fb7d925 100644
--- a/src/Popup.js
+++ b/src/Popup.js
@@ -83,7 +83,7 @@ class Popup extends Component {
     const height = $ele.offsetHeight;
     const width = $ele.offsetWidth;
 
-    if (targetHeight !== height || targetWidth !== width || !stretchChecked) {
+    if ((targetHeight !== height || targetWidth !== width) && !stretchChecked) {
       this.setState({
         stretchChecked: true,
         targetHeight: height,