Skip to content

Commit e6d678f

Browse files
committed
fix: height
1 parent 486da7e commit e6d678f

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
@@ -246,7 +246,7 @@ var GEOComp = (function () {
246246
case 'window:resize':
247247
console.log("P", props.autoHeight)
248248
if (props.features && props.features.scaleToBottom == true && props.autoHeight) {
249-
var newHeight = (eventObj.window.height - eventObj.size.bottom - (props.styles.padding * 2) - 2)
249+
var newHeight = dimensions.height + (eventObj.window.height - eventObj.size.bottom - (props.styles.padding * 2) - 2)
250250
setDimensions({ width: dimensions.width, height: newHeight })
251251
eventObj.element.style.height = `${newHeight}px`
252252
}

0 commit comments

Comments
 (0)