SplitPane: fixed StackOverflowError caused by layout loop that may occur under special circumstances (issue #513)

This commit is contained in:
Karl Tauber
2022-04-12 13:47:04 +02:00
parent 68a7a60ff2
commit d09e166e4a
2 changed files with 3 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ FlatLaf Change Log
font. (issue #506) font. (issue #506)
- FileChooser: Enabled full row selection for details view to fix alternate row - FileChooser: Enabled full row selection for details view to fix alternate row
coloring. (issue #512) coloring. (issue #512)
- SplitPane: Fixed `StackOverflowError` caused by layout loop that may occur
under special circumstances. (issue #513)
- ToolBar: Fixed endless loop in focus navigation that may occur under special - ToolBar: Fixed endless loop in focus navigation that may occur under special
circumstances. (issue #505) circumstances. (issue #505)
- IntelliJ Themes: `Component.accentColor` UI property now has useful theme - IntelliJ Themes: `Component.accentColor` UI property now has useful theme

View File

@@ -235,7 +235,7 @@ public class FlatSplitPaneUI
switch( e.getPropertyName() ) { switch( e.getPropertyName() ) {
case JSplitPane.DIVIDER_LOCATION_PROPERTY: case JSplitPane.DIVIDER_LOCATION_PROPERTY:
// necessary to show/hide one-touch buttons on expand/collapse // necessary to show/hide one-touch buttons on expand/collapse
revalidate(); doLayout();
break; break;
} }
} }