From f198d513da017040da1ab367f2a1ea1d649d9ccf Mon Sep 17 00:00:00 2001 From: Mirek Fidler Date: Wed, 23 Nov 2022 10:16:35 +0100 Subject: [PATCH] ide, CodeEditor: Fixed problem with too big popups --- uppsrc/CodeEditor/CodeEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/uppsrc/CodeEditor/CodeEditor.cpp b/uppsrc/CodeEditor/CodeEditor.cpp index 4eceb73f7..bb5931ca4 100644 --- a/uppsrc/CodeEditor/CodeEditor.cpp +++ b/uppsrc/CodeEditor/CodeEditor.cpp @@ -698,6 +698,7 @@ void CodeEditor::SyncTip() mt.pos = tippos; mt.sz.cx = min(DPI(1000), 2 * wa.GetWidth() / 3); if(tippos >= 0 && IsVisible() && (WhenTip(mt) || delayed_tip && DelayedTip(mt))) { + mt.sz.cy = min(wa.GetHeight() / 2 - DPI(20), mt.sz.cy); tip.d = mt.display; tip.v = mt.value; tip.background = mt.background;