Skip to content

Commit

Permalink
🐛 Fix minimal width badly measured after a split pane
Browse files Browse the repository at this point in the history
Fixes #497
  • Loading branch information
abe33 committed Jul 5, 2016
1 parent befbad4 commit 1f97824
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/minimap-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -963,6 +966,8 @@ export default class MinimapElement {
}

this.updateCanvasesSize(canvasWidth)
} else {
this.style.flexBasis = safeFlexBasis
}
}

Expand Down

0 comments on commit 1f97824

Please sign in to comment.