mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-23 14:22:41 -06:00
CtrlLib: DisplayPopup/TreeCtrl adjustments
This commit is contained in:
parent
dcc9b0a502
commit
f484b64c19
2 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ void DisplayPopup::PopUp::Sync()
|
|||
if(slim.Contains(GetMousePos())) {
|
||||
Rect r = item;
|
||||
r.right = max(r.right, r.left + sz.cx + 2 * margin);
|
||||
r.bottom = max(r.bottom, r.top + sz.cy + 2 * margin);
|
||||
r.bottom = max(r.bottom, r.top + sz.cy);
|
||||
r.Inflate(1, 1);
|
||||
Rect v = ctrl->GetScreenView();
|
||||
r.Offset(v.TopLeft());
|
||||
|
|
|
|||
|
|
@ -982,7 +982,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.GetValueSize(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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue