Browse Source

Pull request #3152: KERNEL-13158: 回退

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

* commit '8398fae0317d4985c4c82bc0188438c788629ece':
  KERNEL-13158: 回退
es6
guy-王川 2 years ago
parent
commit
62b3d0d826
  1. 4
      src/core/constant/var.js

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