Browse Source

Merge branch 'master' of ssh://code.fineres.com:7999/~dailer/fineui

research/test
zsmj 2 years ago
parent
commit
93a384c853
  1. 2
      package.json
  2. 3
      src/core/platform/web/function.js

2
package.json

@ -1,6 +1,6 @@
{
"name": "fineui",
"version": "2.0.20221213152248",
"version": "2.0.20221214104244",
"description": "fineui",
"main": "dist/fineui_without_conflict.min.js",
"types": "dist/lib/index.d.ts",

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