diff --git a/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp b/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp index f90dd7808..a2e88b28f 100644 --- a/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp +++ b/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp @@ -248,7 +248,7 @@ void DocumentMap::scrollMap() if (lowerY == 0) { auto lineHeight = _pMapView->execute(SCI_TEXTHEIGHT, firstVisibleDocLine); - lowerY = nbLine * lineHeight + firstVisibleDocLine; + lowerY = nbLine * lineHeight + higherY; } } else