diff --git a/CHANGELOG.md b/CHANGELOG.md index 99d635f53..fe889b127 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ FlatLaf Change Log and #750) - OptionPane: Fixed styling custom panel background in `JOptionPane`. (issue #761) +- Fixed broken rendering after resizing window to minimum size and then + increasing size again. (issue #767) ## 3.2.5 diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatRootPaneUI.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatRootPaneUI.java index 861251013..3dde8f151 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatRootPaneUI.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatRootPaneUI.java @@ -499,7 +499,7 @@ public void layoutContainer( Container parent ) { @Override public void invalidateLayout( Container parent ) { if( titlePane != null ) - titlePane.menuBarChanged(); + titlePane.menuBarInvalidate(); } @Override diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTitlePane.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTitlePane.java index 3de0e068d..6eb29660a 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTitlePane.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTitlePane.java @@ -608,6 +608,10 @@ protected void menuBarLayouted() { doLayout(); } + void menuBarInvalidate() { + menuBarPlaceholder.invalidate(); + } + @Override public void paint( Graphics g ) { super.paint( g );