mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-126355 IntelliJ LaF: different sizes of browse buttons
This commit is contained in:
@@ -87,6 +87,9 @@ public class FixedSizeButton extends JButton {
|
||||
public Dimension getPreferredSize() {
|
||||
if (myComponent != null) {
|
||||
int size = myComponent.getPreferredSize().height;
|
||||
if (myComponent instanceof ComboBox && (UIUtil.isUnderIntelliJLaF() || UIUtil.isUnderDarcula())) {
|
||||
size -= 2; // decrement to match JTextField's preferred height
|
||||
}
|
||||
return new Dimension(size, size);
|
||||
}
|
||||
else if (mySize != -1) {
|
||||
|
||||
Reference in New Issue
Block a user