ide, CodeEditor: Fixed problem with too big popups

This commit is contained in:
Mirek Fidler 2022-11-23 10:16:35 +01:00
parent f18c44b002
commit f198d513da

View file

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