BreadCrumbsBar: fix second row not preferredSize
authorNiki Roo <niki@nikiroo.be>
Sat, 25 Apr 2020 11:32:39 +0000 (13:32 +0200)
committerNiki Roo <niki@nikiroo.be>
Sat, 25 Apr 2020 11:32:39 +0000 (13:32 +0200)
src/be/nikiroo/utils/ui/BreadCrumbsBar.java

index ed20f92916d6809106bedd430c08b9da1de1526a..8b993e64b58706c4bf1b567d482ff1618deae43d 100644 (file)
@@ -152,7 +152,7 @@ public class BreadCrumbsBar<T> extends ListenerPanel {
                                if (vertical) {
                                        this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
                                } else {
-                                       this.setLayout(new FlowLayout(FlowLayout.LEADING));
+                                       this.setLayout(new WrapLayout(WrapLayout.LEADING));
                                }
 
                                for (BreadCrumb crumb : crumbs) {