We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a4dbe2 commit cd4093fCopy full SHA for cd4093f
src/GEOComp.tsx
@@ -239,7 +239,7 @@ var GEOComp = (function () {
239
case 'window:resize':
240
if (featureEnabled('scaleToBottom') && props.autoHeight) {
241
const pads = props.styles.padding.split(' ');
242
- const bottom = (parseFloat(pads[pads.length == 4 ? 3 : 0].replace("px", "")) * 2) - 2
+ const bottom = (parseFloat(pads[pads.length == 4 ? 3 : 0].replace("px", "")) * 2) + 2
243
var newHeight = dimensions.height + (eventObj.windowSize.height - eventObj.bounds.bottom - bottom)
244
eventObj.element.style.height = `${newHeight}px`
245
setDimensions({ width: dimensions.width, height: newHeight })
0 commit comments