You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/07/30 16:17:23 UTC

[incubator-echarts] branch next updated: fix(bar): bar height can be nengative values

This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git


The following commit(s) were added to refs/heads/next by this push:
     new 81b81c3  fix(bar): bar height can be nengative values
81b81c3 is described below

commit 81b81c33f49d1c8d8067e7bdd6ccc30ea6c9b600
Author: pissang <bm...@gmail.com>
AuthorDate: Fri Jul 31 00:17:04 2020 +0800

    fix(bar): bar height can be nengative values
---
 src/chart/bar/BarView.ts | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/chart/bar/BarView.ts b/src/chart/bar/BarView.ts
index 18a818e..0150d48 100644
--- a/src/chart/bar/BarView.ts
+++ b/src/chart/bar/BarView.ts
@@ -599,8 +599,6 @@ const clip: {
             layout.y += layout.height;
             layout.height = -layout.height;
         }
-        layout.width = Math.max(layout.width, 0);
-        layout.height = Math.max(layout.height, 0);
 
         return clipped;
     },


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org