[BUG_FIXED] Fix a resize bug in Doc Map

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@872 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2012-02-26 13:05:14 +00:00
parent 9d1e836079
commit f08c29f2b5
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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)