mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Call super.getPreferredSize() for panel with single child when for panel sets border
GitOrigin-RevId: cb2bcaef9f7cd4619bb72ddb85b143af5790434d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
33c771f445
commit
31dfe525d8
@@ -103,7 +103,7 @@ public class CellRendererPanel extends JPanel {
|
||||
|
||||
@Override
|
||||
public Dimension getPreferredSize() {
|
||||
if (getComponentCount() != 1) {
|
||||
if (getComponentCount() != 1 || getBorder() != null) {
|
||||
return super.getPreferredSize();
|
||||
}
|
||||
return getComponent(0).getPreferredSize();
|
||||
|
||||
Reference in New Issue
Block a user