Docking: fixed window title appearance bug

git-svn-id: svn://ultimatepp.org/upp/trunk@4497 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-01-30 16:22:01 +00:00
parent 6736eaba6c
commit d79d2052a8
2 changed files with 2 additions and 3 deletions

View file

@ -247,8 +247,7 @@ void DockConfigDlg::OnTreeDrag()
{
if (tree.GetCursor() >= 0 && tree.GetParent(tree.GetCursor()) == 0)
return;
tree.DoDragAndDrop(InternalClip(tree, "dockwindowdrag"),
tree.GetDragSample(), DND_MOVE) == DND_MOVE;
tree.DoDragAndDrop(InternalClip(tree, "dockwindowdrag"), tree.GetDragSample(), DND_MOVE) == DND_MOVE; //??
}
void DockConfigDlg::OnTreeDrop(int parent, int ii, PasteClip& d)

View file

@ -143,7 +143,7 @@ void ImgButton::Paint(Draw &w)
// DockContHandle frame
int DockCont::DockContHandle::GetHandleSize(const DockableCtrl::Style &s) const
{
return (!IsNull(s.title_font) ? 12 : s.title_font.GetHeight()+4)
return (IsNull(s.title_font) ? 12 : s.title_font.GetHeight()+4)
+ (s.handle_vert ? s.handle_margins.GetWidth() : s.handle_margins.GetHeight());
}
/*