From db5919b4e49af89b2f7ea63f1468fbce227f8d00 Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 4 Sep 2018 12:41:21 +0000 Subject: [PATCH] ide: UHD annotations fix git-svn-id: svn://ultimatepp.org/upp/trunk@12246 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/Annotations.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uppsrc/ide/Annotations.cpp b/uppsrc/ide/Annotations.cpp index e4161de0e..89c7221f5 100644 --- a/uppsrc/ide/Annotations.cpp +++ b/uppsrc/ide/Annotations.cpp @@ -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); }