From e59d62445cd49073cf39e806ac6eded078115fed Mon Sep 17 00:00:00 2001 From: Andrey Loskutov Date: Wed, 6 Feb 2019 15:57:38 +0100 Subject: Bug 538594 - [content assist] Default size is too small This change increases the content assist width from height x 1.62 to height x 2. Change-Id: I054c3464998c27bbb1a95378371254507051a129 Signed-off-by: Andrey Loskutov --- .../eclipse/jface/text/contentassist/CompletionProposalPopup.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java index 94ce3d8b8b4..d84b562d910 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java @@ -639,9 +639,9 @@ class CompletionProposalPopup implements IContentAssistListener { fProposalTable.setLayoutData(data); fProposalShell.setSize(size); } else { - int height= fProposalTable.getItemHeight() * 15; - // use golden ratio as default aspect ratio - final double aspectRatio= (1 + Math.sqrt(5)) / 2; + int height= fProposalTable.getItemHeight() * 10; + // use 2 x ratio as default aspect ratio instead of (1 + Math.sqrt(5)) / 2 + double aspectRatio= 2; int width= (int) (height * aspectRatio); // Make sure our bounds still fit to the screen -- cgit v1.2.3