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",