diff --git a/PowerEditor/src/NppBigSwitch.cpp b/PowerEditor/src/NppBigSwitch.cpp index 9404c7bc0..0e2d709c2 100644 --- a/PowerEditor/src/NppBigSwitch.cpp +++ b/PowerEditor/src/NppBigSwitch.cpp @@ -419,6 +419,11 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa getMainClientRect(rc); _dockingManager.reSizeTo(rc); + if (_pDocMap) + { + _pDocMap->doMove(); + } + result = TRUE; } break; diff --git a/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp b/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp index 402dcda98..8defa4793 100644 --- a/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp +++ b/PowerEditor/src/WinControls/DocumentMap/documentMap.cpp @@ -87,7 +87,7 @@ void DocumentMap::doMove() POINT pt = {0,0}; ::ClientToScreen(_pScintillaEditView->getHSelf(), &pt); _pScintillaEditView->getClientRect(rc); - ::MoveWindow(_vzDlg.getHSelf(), pt.x, pt.y, (rc.right - rc.left) -4, (rc.bottom - rc.top) - 4, TRUE); + ::MoveWindow(_vzDlg.getHSelf(), pt.x, pt.y, (rc.right - rc.left), (rc.bottom - rc.top), TRUE); } void DocumentMap::fold(int line, bool foldOrNot)