Browse Source

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

* commit '89ca5b379331e68af8356a6ef603764ec493bf87':
  auto upgrade version to 2.0.20221021135419
  KERNEL-13158: 回退
research/test
superman 2 years ago
parent
commit
27c1e62d35
  1. 2
      package.json
  2. 4
      src/core/constant/var.js

2
package.json

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

4
src/core/constant/var.js

@ -19,8 +19,8 @@ BI._.extend(BI, {
if (!BI.isNumber(pix)) {
return pix;
}
if (BI.pixUnit === "px") {
return (pix - (border || 0)) / BI.pixRatio;
if (BI.pixUnit === "px" && BI.pixRatio === 1) {
return (pix - (border || 0)) / BI.pixRatio + BI.pixUnit;
}
var length = pix / BI.pixRatio + BI.pixUnit;
if (border > 0) {

Loading…
Cancel
Save