Skip to content

Commit 805732e

Browse files
committed
fix: Resize
1 parent b803ec1 commit 805732e

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
@@ -244,11 +244,11 @@ var GEOComp = (function () {
244244
props.feature.onChange(eventObj)
245245
break;
246246
case 'window:resize':
247-
console.log("P", props.autoHeight)
248247
if (props.features && props.features.scaleToBottom == true && props.autoHeight) {
249248
var newHeight = dimensions.height + (eventObj.window.height - eventObj.size.bottom - (props.styles.padding * 2) - 2)
250-
setDimensions({ width: dimensions.width, height: newHeight })
251249
eventObj.element.style.height = `${newHeight}px`
250+
setDimensions({ width: dimensions.width, height: newHeight })
251+
console.log("Resize", props.autoHeight, newHeight)
252252
}
253253
break
254254
default:

0 commit comments

Comments
 (0)