From c4027eaec43cee346e2cbc682360b9f2175cd00b Mon Sep 17 00:00:00 2001 From: zombiej Date: Wed, 12 Jun 2019 11:49:20 +0800 Subject: [PATCH] use calc to fix tree line --- components/tree/style/index.less | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/tree/style/index.less b/components/tree/style/index.less index ca9053870a6d..da347b39f70d 100644 --- a/components/tree/style/index.less +++ b/components/tree/style/index.less @@ -244,7 +244,8 @@ left: 12px; width: 1px; height: 100%; - margin: 22px 0; + height: calc(100% - 22px); // Remove additional height if support + margin: 22px 0 0; border-left: 1px solid @border-color-base; content: ' '; }