From 75315cf5b2d5ed0c36d899a8b040729cd90ede5c Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 26 Jan 2025 00:39:14 +0100 Subject: [PATCH] IDE: SourceEditor, fix painting hint on completion drop down. Do not limit to width of dropdown, the hint is intentionally wider. (Currently use "ItemSelect" to detect if the paint may be for the hint) (cherry picked from commit 5aee1dc5de9faf4e1ce7b938630f82953d29ea3a) --- ide/sourceeditor.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/ide/sourceeditor.pp b/ide/sourceeditor.pp index 0ff748e570..3fac371cc2 100644 --- a/ide/sourceeditor.pp +++ b/ide/sourceeditor.pp @@ -2725,6 +2725,7 @@ begin Colors.TextSelectedColor := FActiveEditTextSelectedColor; Colors.TextHilightColor := FActiveEditTextHighLightColor; MaxX:=TheForm.ClientWidth; + if ItemSelected then MaxX := MaxInt; // Might be hint, then it has more space t:=CurrentCompletionType; if Manager.ActiveCompletionPlugin<>nil then begin