diff --git a/lib/minimap-element.js b/lib/minimap-element.js index f6b67185..e83ddb13 100644 --- a/lib/minimap-element.js +++ b/lib/minimap-element.js @@ -929,6 +929,9 @@ export default class MinimapElement { measureHeightAndWidth (visibilityChanged, forceUpdate = true) { if (!this.minimap) { return } + const safeFlexBasis = this.style.flexBasis + this.style.flexBasis = '' + let wasResized = this.width !== this.clientWidth || this.height !== this.clientHeight this.height = this.clientHeight @@ -963,6 +966,8 @@ export default class MinimapElement { } this.updateCanvasesSize(canvasWidth) + } else { + this.style.flexBasis = safeFlexBasis } }