diff --git a/lib/minimap.js b/lib/minimap.js index 429a21d5..5d7abf06 100644 --- a/lib/minimap.js +++ b/lib/minimap.js @@ -647,7 +647,8 @@ export default class Minimap { * @returns {number} The height of the minimap */ getHeight() { - return this.textEditor.getScreenLineCount() * this.getLineHeight() + const additionalHeight = this.scrollPastEnd ? this.textEditor.getRowsPerPage() : 0 + return (this.textEditor.getScreenLineCount() + additionalHeight) * this.getLineHeight() } /**