Skip to content

Commit

Permalink
Merge pull request #812 from vlad0337187/patch-1
Browse files Browse the repository at this point in the history
fix(lib.minimap):  scroll by drag if scrollPastEnd
  • Loading branch information
aminya authored Oct 12, 2024
2 parents 2eedb48 + 6787ffb commit c0e2b55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/minimap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

/**
Expand Down

0 comments on commit c0e2b55

Please sign in to comment.