From 163f934dcd979ba9b3f186a494acda8d4a6992f5 Mon Sep 17 00:00:00 2001 From: Jackson Date: Thu, 16 Nov 2017 16:03:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=AB=98=E5=BA=A6?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#906)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mip-showmore/mip-showmore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mip-showmore/mip-showmore.js b/src/mip-showmore/mip-showmore.js index 2a21529d0..dc39d84cd 100755 --- a/src/mip-showmore/mip-showmore.js +++ b/src/mip-showmore/mip-showmore.js @@ -130,7 +130,7 @@ define(function (require) { if (this.showBox.style.height && this.showBox.style.height.match('px')) { height = getHeightUnfold(this.showBox); } else { - height = getComputedStyle(this.showBox).height; + height = util.rect.getElementOffset(this.showBox).height; } // 如果高度大于阈值 if (height > this.maxHeight) {