Skip to content

Commit a2aca03

Browse files
committed
fix: resize test
1 parent caac079 commit a2aca03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GEOComp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ var GEOComp = (function () {
283283
//Remove the bottom of the wrapper
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
286-
var newHeight = eventObj.windowSize.height - eventObj.bounds.top - offset - (props.resizeOffset || 0)
286+
var newHeight = eventObj.windowSize.height - eventObj.bounds.top - offset * 2 - (props.resizeOffset || 0)
287287
if (newHeight != dimensions.height) {
288-
eventObj.element.style.height = `${newHeight}px`
288+
//eventObj.element.style.height = `${newHeight}px`
289289
setDimensions({ width: dimensions.width, height: newHeight })
290290
if (featureEnabled("debug"))
291291
console.debug("Resized done", newHeight)

0 commit comments

Comments
 (0)