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; }