|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|