CtrlLib: Fixed minor visual glitch in TreeCtrl displaypopup

git-svn-id: svn://ultimatepp.org/upp/trunk@11162 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-06-13 19:01:18 +00:00
parent ecf562b9f0
commit 5f8f4e3a87
2 changed files with 1 additions and 2 deletions

View file

@ -1,4 +1,3 @@
class DisplayPopup : public Ctrl, public Link<DisplayPopup> {
virtual void Paint(Draw& w);
virtual void LeftDown(Point p, dword);

View file

@ -878,7 +878,7 @@ void TreeCtrl::SyncInfo()
Size csz = m.GetCtrlSize();
if(m.ctrl && !highlight_ctrl)
x += csz.cx;
Rect r = RectC(x, l.y - org.y, sz.cx - x, m.GetSize(display).cy);
Rect r = RectC(x, l.y - org.y, sz.cx - x, m.GetValueSize(display).cy + 2 * m.margin);
if(r.Contains(p)) {
Color fg, bg;
dword st;