Browse Source

Merge pull request #211831 in DEC/fineui from master to feature/x

* commit 'dc63d48a31f33ecc3a05444fb7abd8ca799bc6af':
  BI-118754 fix(getMinimumFontSize): 获取最小字号无效
research/test
superman 2 years ago
parent
commit
02b1b30f74
  1. 3
      src/core/platform/web/function.js

3
src/core/platform/web/function.js

@ -140,8 +140,9 @@ BI._.extend(BI, {
},
getMinimumFontSize: function () {
// not work for firefox
const el = document.createElement('div');
el.style.fontSize = "0px";
el.style.fontSize = "1px";
document.body.appendChild(el);
const size = getComputedStyle(el).fontSize;
el.remove();

Loading…
Cancel
Save