fixed broken rendering after resizing window to minimum size and then increasing size again (issue #767)

This commit is contained in:
Karl Tauber
2023-11-25 18:12:13 +01:00
parent ec7673790c
commit 417f0f5f1c
3 changed files with 7 additions and 1 deletions

View File

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

View File

@@ -499,7 +499,7 @@ public class FlatRootPaneUI
@Override
public void invalidateLayout( Container parent ) {
if( titlePane != null )
titlePane.menuBarChanged();
titlePane.menuBarInvalidate();
}
@Override

View File

@@ -608,6 +608,10 @@ public class FlatTitlePane
doLayout();
}
void menuBarInvalidate() {
menuBarPlaceholder.invalidate();
}
@Override
public void paint( Graphics g ) {
super.paint( g );