From 1f97824e23706d10fb0c6e35da9000388d20ef46 Mon Sep 17 00:00:00 2001 From: abe33 Date: Tue, 5 Jul 2016 16:55:09 +0200 Subject: [PATCH] :bug: Fix minimal width badly measured after a split pane Fixes #497 --- lib/minimap-element.js | 5 +++++ 1 file changed, 5 insertions(+) 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 } }