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