Browse Source

Pull request #13309: REPORT-99485 fix: svgicon在其他dpi下表现异常

Merge in DESIGN/design from ~VITO/c-design:newui to newui

* commit '1946cd236dc75110e49a020e2d837a617df67f01':
  REPORT-99485 fix: svgicon在其他dpi下表现异常
newui
vito-刘恒霖 12 months ago
parent
commit
8aaf99031b
  1. 6
      designer-base/src/main/java/com/fine/theme/icon/svg/SvgIcon.java

6
designer-base/src/main/java/com/fine/theme/icon/svg/SvgIcon.java

@ -106,14 +106,12 @@ public class SvgIcon implements DisabledIcon, Icon {
@Override @Override
public int getIconWidth() { public int getIconWidth() {
// 根据dpi解除缩放 return size.width;
return unscale(size.width);
} }
@Override @Override
public int getIconHeight() { public int getIconHeight() {
// 根据dpi解除缩放 return size.height;
return unscale(size.height);
} }
/** /**

Loading…
Cancel
Save