mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
CtrlLib: Tooltip position improved
This commit is contained in:
parent
5d97f4773c
commit
ad0286c827
1 changed files with 2 additions and 2 deletions
|
|
@ -76,9 +76,9 @@ void ShowToolTip()
|
|||
LLOG("-> foreground");
|
||||
Size sz = q.GetMinSize();
|
||||
Rect r = Ctrl::GetMouseWorkArea();
|
||||
Point p = GetMousePos() + Size(0, 22);
|
||||
Point p = GetMousePos() + Size(0, DPI(22));
|
||||
if(p.y + sz.cy > r.bottom)
|
||||
p = GetMousePos() - Size(0, 6) - sz.cy;
|
||||
p = GetMousePos() - Size(0, DPI(6)) - sz.cy;
|
||||
q.PopUp(top, p, !showmode);
|
||||
showmode = true;
|
||||
KillTimeCallback((void *)EndShowMode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue