ide: UHD annotations fix

git-svn-id: svn://ultimatepp.org/upp/trunk@12246 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-09-04 12:41:21 +00:00
parent 95415c81dd
commit db5919b4e4

View file

@ -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);
}