Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMykola Zakharchuk2018-09-04 07:08:53 +0000
committerAndrey Loskutov2019-01-28 15:42:44 +0000
commit672b2b81259c3bab1877489434e05109b4522439 (patch)
tree76091d7cd5af5e71063a5e791bf5a9940b2958b3 /org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContentAssistant.java
parent57aef1646fef9009290374dec1cc83d8db9e8e0b (diff)
downloadeclipse.platform.text-672b2b81259c3bab1877489434e05109b4522439.tar.gz
eclipse.platform.text-672b2b81259c3bab1877489434e05109b4522439.tar.xz
eclipse.platform.text-672b2b81259c3bab1877489434e05109b4522439.zip
This change makes proposal window more suitable for displaying long API names. Minimum height increased from 10 to 15 elements (width is depending on that as before, so it is increased accordingly). Both dimensions will be checked to be not bigger than 1/4 of the appropriate dimension of the current monitor. Change-Id: I7a00aecc6eafe70d24d00dcec691198a11aefd97 Signed-off-by: Mykola Zakharchuk <zakharchuk.vn@gmail.com> Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContentAssistant.java')
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContentAssistant.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContentAssistant.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContentAssistant.java
index 2e3ed84a799..f4c66bf62c2 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContentAssistant.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/ContentAssistant.java
@@ -2399,8 +2399,8 @@ public class ContentAssistant implements IContentAssistant, IContentAssistantExt
}
// Enforce an absolute minimal size
- size.x= Math.max(size.x, 30);
- size.y= Math.max(size.y, 30);
+ size.x= Math.max(size.x, 50);
+ size.y= Math.max(size.y, 50);
}
return size;

Back to the top