Browse Source

REPORT-137786 fix: 补充缩放适配

fbp/master
Levy.Xie-解安森 3 months ago
parent
commit
d8a94fce01
  1. 2
      designer-base/src/main/java/com/fine/theme/light/ui/FineComboBoxUI.java

2
designer-base/src/main/java/com/fine/theme/light/ui/FineComboBoxUI.java

@ -88,7 +88,7 @@ public class FineComboBoxUI extends FlatComboBoxUI {
// 限制最大宽度,如超出则高度预留展示横向滚动条所需宽度
int comboWidth = comboBox.getWidth();
if (fitRectangle.width > comboWidth) {
return new Rectangle(px, py, comboWidth, fitRectangle.height + FlatUIUtils.getUIInt("ScrollBar.width", 10));
return new Rectangle(px, py, comboWidth, fitRectangle.height + FineUIUtils.getAndScaleInt("ScrollBar.width", 10));
}
return fitRectangle;
}

Loading…
Cancel
Save