diff options
author | Andrey Loskutov | 2019-02-06 14:57:38 +0000 |
---|---|---|
committer | Dani Megert | 2019-02-06 15:58:37 +0000 |
commit | e59d62445cd49073cf39e806ac6eded078115fed (patch) | |
tree | abc80be9ec68711a9b4fbf3bc8e494aa7a992c28 | |
parent | 7c1e9a10c8a714cb0b85360c573fa7d47db5b409 (diff) | |
download | eclipse.platform.text-e59d62445cd49073cf39e806ac6eded078115fed.tar.gz eclipse.platform.text-e59d62445cd49073cf39e806ac6eded078115fed.tar.xz eclipse.platform.text-e59d62445cd49073cf39e806ac6eded078115fed.zip |
Bug 538594 - [content assist] Default size is too smallY20190208-0505Y20190206-2200I20190209-1800I20190208-1800I20190207-1800I20190206-1800
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.java | 6 |
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 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 |