Skip to content

Commit

Permalink
fixed broken rendering after resizing window to minimum size and then…
Browse files Browse the repository at this point in the history
… increasing size again (issue #767)
  • Loading branch information
DevCharly committed Nov 25, 2023
1 parent ec76737 commit 417f0f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public void layoutContainer( Container parent ) {
@Override
public void invalidateLayout( Container parent ) {
if( titlePane != null )
titlePane.menuBarChanged();
titlePane.menuBarInvalidate();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,10 @@ protected void menuBarLayouted() {
doLayout();
}

void menuBarInvalidate() {
menuBarPlaceholder.invalidate();
}

@Override
public void paint( Graphics g ) {
super.paint( g );
Expand Down

0 comments on commit 417f0f5

Please sign in to comment.