Skip to content

Commit 01a84d4

Browse files
committed
fix: newHeight
1 parent 1d91af5 commit 01a84d4

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/GEOComp.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,11 @@ var GEOComp = (function () {
284284
const offset = (parseFloat(pads[pads.length == 4 ? 3 : 0].replace("px", ""))) + (parseFloat(marg[marg.length == 4 ? 3 : 0].replace("px", "")))
285285
//TODO: Take care of margin and padding, but also that of parents
286286
var newHeight = eventObj.windowSize.height - eventObj.bounds.top - offset * 2 - (props.resizeOffset || 0)
287-
if (newHeight != dimensions.height) {
288-
eventObj.newHeight = newHeight
289-
//eventObj.element.style.height = `${newHeight}px`
290-
setDimensions({ width: dimensions.width, height: newHeight })
291-
if (featureEnabled("debug"))
292-
console.debug("Resized done", newHeight)
293-
}
287+
eventObj.newHeight = newHeight
288+
//eventObj.element.style.height = `${newHeight}px`
289+
setDimensions({ width: dimensions.width, height: newHeight })
290+
if (featureEnabled("debug"))
291+
console.debug("Resized done", newHeight)
294292
}
295293
break
296294
default:

0 commit comments

Comments
 (0)