[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:
parent
9d1e836079
commit
f08c29f2b5
@ -419,6 +419,11 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
|||||||
getMainClientRect(rc);
|
getMainClientRect(rc);
|
||||||
_dockingManager.reSizeTo(rc);
|
_dockingManager.reSizeTo(rc);
|
||||||
|
|
||||||
|
if (_pDocMap)
|
||||||
|
{
|
||||||
|
_pDocMap->doMove();
|
||||||
|
}
|
||||||
|
|
||||||
result = TRUE;
|
result = TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -87,7 +87,7 @@ void DocumentMap::doMove()
|
|||||||
POINT pt = {0,0};
|
POINT pt = {0,0};
|
||||||
::ClientToScreen(_pScintillaEditView->getHSelf(), &pt);
|
::ClientToScreen(_pScintillaEditView->getHSelf(), &pt);
|
||||||
_pScintillaEditView->getClientRect(rc);
|
_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)
|
void DocumentMap::fold(int line, bool foldOrNot)
|
||||||
|
Loading…
Reference in New Issue
Block a user