From 08ea25d447d76b859f445f874ec07510e7d20b8e Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Fri, 14 Jun 2019 17:26:52 +0300 Subject: [PATCH] make preview smaller to fit in the preview box GitOrigin-RevId: 6c62bb47b5a25088d1ebd3008643aca9183b3d5a --- .../hints/MethodChainsInlayProvider.kt | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/java/java-impl/src/com/intellij/codeInsight/hints/MethodChainsInlayProvider.kt b/java/java-impl/src/com/intellij/codeInsight/hints/MethodChainsInlayProvider.kt index 538a07ff491e..c8428f4ff94c 100644 --- a/java/java-impl/src/com/intellij/codeInsight/hints/MethodChainsInlayProvider.kt +++ b/java/java-impl/src/com/intellij/codeInsight/hints/MethodChainsInlayProvider.kt @@ -11,6 +11,7 @@ import com.intellij.ui.components.fields.IntegerField import com.intellij.ui.layout.* import com.intellij.util.ui.JBUI import com.siyeh.ig.psiutils.ExpressionUtils +import org.intellij.lang.annotations.Language import javax.swing.JPanel import javax.swing.event.DocumentEvent import javax.swing.event.DocumentListener @@ -90,9 +91,29 @@ class MethodChainsInlayProvider : InlayHintsProvider