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-刘恒霖 1 year 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
public int getIconWidth() {
// 根据dpi解除缩放
return unscale(size.width);
return size.width;
}
@Override
public int getIconHeight() {
// 根据dpi解除缩放
return unscale(size.height);
return size.height;
}
/**

Loading…
Cancel
Save