mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
ide: UHD annotations fix
git-svn-id: svn://ultimatepp.org/upp/trunk@12246 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
95415c81dd
commit
db5919b4e4
1 changed files with 4 additions and 4 deletions
|
|
@ -127,12 +127,12 @@ void AssistEditor::SyncAnnotationPopup()
|
|||
else
|
||||
annotation_popup.SetQTF("[A1 [@b* " + DeQtf(coderef) + "]&Documentation not loaded yet");
|
||||
Rect r = GetLineScreenRect(GetActiveAnnotationLine());
|
||||
int h = annotation_popup.GetHeight(580);
|
||||
h = min(h, 550);
|
||||
int y = r.top - h - 16;
|
||||
int h = annotation_popup.GetHeight(Zx(580));
|
||||
h = min(h, Zx(550));
|
||||
int y = r.top - h - DPI(16);
|
||||
if(y < GetWorkArea().top)
|
||||
y = r.bottom;
|
||||
annotation_popup.SetRect(r.left, y, 600, h + 16);
|
||||
annotation_popup.SetRect(r.left, y, Zx(600), h + DPI(16));
|
||||
annotation_popup.Ctrl::PopUp(this, false, false, true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue