From ec4d6b19c49a65dd0a011c45797556e0320394bc Mon Sep 17 00:00:00 2001 From: zheng Date: Fri, 20 Jul 2018 11:44:41 +0800 Subject: [PATCH] CHART-2492 910 --- .../fr/van/chart/designer/other/VanChartInteractivePane.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/designer-chart/src/main/java/com/fr/van/chart/designer/other/VanChartInteractivePane.java b/designer-chart/src/main/java/com/fr/van/chart/designer/other/VanChartInteractivePane.java index d23eea9103..2c5e203529 100644 --- a/designer-chart/src/main/java/com/fr/van/chart/designer/other/VanChartInteractivePane.java +++ b/designer-chart/src/main/java/com/fr/van/chart/designer/other/VanChartInteractivePane.java @@ -183,7 +183,10 @@ public class VanChartInteractivePane extends AbstractVanChartScrollPane { private void checkZoomEnabled() { if (zoomWidget != null && axisRotation != null) { - zoomWidget.setSelectedIndex(1); + if (axisRotation.getSelectedIndex() == 0) { + //只有开启坐标轴翻转,才需要将缩放控件强制关闭。 + zoomWidget.setSelectedIndex(1); + } checkZoomPane(); zoomWidget.setEnabled(axisRotation.getSelectedIndex() == 1); }