Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2019-02-06 09:57:38 -0500
committerDani Megert2019-02-06 10:58:37 -0500
commite59d62445cd49073cf39e806ac6eded078115fed (patch)
treeabc80be9ec68711a9b4fbf3bc8e494aa7a992c28
parent7c1e9a10c8a714cb0b85360c573fa7d47db5b409 (diff)
downloadeclipse.platform.text-e59d62445cd49073cf39e806ac6eded078115fed.tar.gz
eclipse.platform.text-e59d62445cd49073cf39e806ac6eded078115fed.tar.xz
eclipse.platform.text-e59d62445cd49073cf39e806ac6eded078115fed.zip
This change increases the content assist width from height x 1.62 to height x 2. Change-Id: I054c3464998c27bbb1a95378371254507051a129 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java6
1 files 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 94ce3d8b8..d84b562d9 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

Back to the top