Browse Source

Pull request #3486: BI-124559 fix: 升级BI6版本后,老版本火狐浏览器无法打开仪表板

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit 'a5f50bedaf566956e54e04d9cad219917b00b6b8':
  BI-124559 fix: 升级BI6版本后,老版本火狐浏览器无法打开仪表板
research/test
Dailer-刘荣歆 2 years ago
parent
commit
1fb9b97fe6
  1. 5
      src/core/platform/web/dom.js

5
src/core/platform/web/dom.js

@ -108,12 +108,13 @@
},
// 获取滚动条的宽度,页面display: none时候获取到的为0
getScrollWidth: function () {
getScrollWidth: function (css) {
if (BI.isNull(this._scrollWidth) || this._scrollWidth === 0) {
var ul = BI.Widget._renderEngine.createElement("<div>").width(50).height(50).css({
position: "absolute",
top: "-9999px",
overflow: "scroll"
overflow: "scroll",
...css
}).appendTo("body");
this._scrollWidth = ul[0].offsetWidth - ul[0].clientWidth;
ul.destroy();

Loading…
Cancel
Save