From 7f41fee58e46a898da9f9e53917d8c729f10f9a6 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Wed, 9 Oct 2019 19:20:03 +0800 Subject: [PATCH] fixed bug --- Scripts/UI/Component/DataZoom.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/UI/Component/DataZoom.cs b/Scripts/UI/Component/DataZoom.cs index 7dfb6867..50e74fa9 100644 --- a/Scripts/UI/Component/DataZoom.cs +++ b/Scripts/UI/Component/DataZoom.cs @@ -334,9 +334,9 @@ namespace XCharts { if (height <= 0) { - var hig = gridBottom - bottom - 30; - if (hig < 10) hig = 10; - return hig; + height = gridBottom - bottom - 30; + if (height < 10) height = 10; + return height; } else return height; }