From 4911bee0592b134c04736048a2fecaf03d6ea145 Mon Sep 17 00:00:00 2001 From: zombieJ Date: Wed, 12 Jun 2019 12:20:32 +0800 Subject: [PATCH] use calc to fix tree line (#17055) --- 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 ca9053870a..da347b39f7 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: ' '; }