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

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