Browse Source

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

* commit 'c02048b52ec555772a1cab32bbf5591f7f4373cc':
  KERNEL-13158: 优化useContext
master
superman 2 years ago
parent
commit
a773c52f93
  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" && BI.pixRatio === 1) {
return (pix - (border || 0)) / BI.pixRatio + BI.pixUnit;
if (BI.pixUnit === "px") {
return (pix - (border || 0)) / BI.pixRatio;
}
var length = pix / BI.pixRatio + BI.pixUnit;
if (border > 0) {

Loading…
Cancel
Save