Skip to content

Commit cd4093f

Browse files
committed
fix: 2px from bottom
1 parent 2a4dbe2 commit cd4093f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GEOComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ var GEOComp = (function () {
239239
case 'window:resize':
240240
if (featureEnabled('scaleToBottom') && props.autoHeight) {
241241
const pads = props.styles.padding.split(' ');
242-
const bottom = (parseFloat(pads[pads.length == 4 ? 3 : 0].replace("px", "")) * 2) - 2
242+
const bottom = (parseFloat(pads[pads.length == 4 ? 3 : 0].replace("px", "")) * 2) + 2
243243
var newHeight = dimensions.height + (eventObj.windowSize.height - eventObj.bounds.bottom - bottom)
244244
eventObj.element.style.height = `${newHeight}px`
245245
setDimensions({ width: dimensions.width, height: newHeight })

0 commit comments

Comments
 (0)