Browse Source

Pull request #3151: KERNEL-13158: 优化useContext

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

* commit '6507dd2d34f95103cecf82d3cdf5b6adb0f2aed7':
  KERNEL-13158: 优化useContext
es6
guy-王川 2 years ago
parent
commit
c02048b52e
  1. 4
      src/core/constant/var.js

4
src/core/constant/var.js

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

Loading…
Cancel
Save