From 1f4f2dd8173d19b59e45b33c1b240534e4a75e1f Mon Sep 17 00:00:00 2001 From: zheng Date: Sat, 30 Jun 2018 11:07:34 +0800 Subject: [PATCH] CHART-1844 910 --- .../src/com/fr/design/condition/ConditionAttributesPane.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/designer-base/src/com/fr/design/condition/ConditionAttributesPane.java b/designer-base/src/com/fr/design/condition/ConditionAttributesPane.java index 347347408d..d176b8627b 100644 --- a/designer-base/src/com/fr/design/condition/ConditionAttributesPane.java +++ b/designer-base/src/com/fr/design/condition/ConditionAttributesPane.java @@ -11,10 +11,12 @@ import com.fr.design.utils.gui.GUICoreUtils; import com.fr.general.Inter; import javax.swing.*; +import java.awt.Dimension; import java.util.HashMap; import java.util.Iterator; public abstract class ConditionAttributesPane extends BasicBeanPane { + private static final int MIN_HEIGHT = 60; protected CellHighlightAddMenuDef menuDef; protected JPanel selectedItemPane; @@ -61,6 +63,7 @@ public abstract class ConditionAttributesPane extends BasicBeanPane { JScrollPane selectedItemScrollPane = new JScrollPane(); selectedItemScrollPane.setViewportView(selectedItemPane); selectedItemScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); + selectedItemScrollPane.setMinimumSize(new Dimension((int) selectedItemScrollPane.getPreferredSize().getWidth(), MIN_HEIGHT)); propertyChangePane.add(selectedItemScrollPane); }