From bc0b168b3bc53fc7a591cbb0280a4082a392d131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dailer-=E5=88=98=E8=8D=A3=E6=AD=86?= Date: Mon, 17 Apr 2023 16:47:06 +0800 Subject: [PATCH] =?UTF-8?q?BI-125050=20=E3=80=906.0.9=E5=86=92=E7=83=9F?= =?UTF-8?q?=E3=80=91=E7=81=AB=E7=8B=90=E6=B5=8F=E8=A7=88=E5=99=A8=EF=BC=8C?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=BA=A7=E7=94=9F=E6=BB=9A=E5=8A=A8=E6=9D=A1?= =?UTF-8?q?=E6=97=B6=E6=B2=A1=E5=8A=9E=E6=B3=95=E8=B0=83=E6=95=B4=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E5=88=97=E7=9A=84=E7=BB=84=E4=BB=B6=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/platform/web/dom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/platform/web/dom.js b/src/core/platform/web/dom.js index 0c190cb2f..f7086bbc7 100644 --- a/src/core/platform/web/dom.js +++ b/src/core/platform/web/dom.js @@ -109,7 +109,7 @@ // 获取滚动条的宽度,页面display: none时候获取到的为0 getScrollWidth: function (css) { - if (BI.isNull(this._scrollWidth) || this._scrollWidth === 0) { + if (BI.isNull(this._scrollWidth) || BI.isNotNull(css) || this._scrollWidth === 0) { var ul = BI.Widget._renderEngine.createElement("
").width(50).height(50).css({ position: "absolute", top: "-9999px",