From: Niki Roo Date: Sat, 25 Apr 2020 11:32:39 +0000 (+0200) Subject: BreadCrumbsBar: fix second row not preferredSize X-Git-Tag: fanfix-swing-0.0.2~8 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=cb0fcbfa0235e0173417a935acfe64f48a23b226;p=fanfix-swing.git BreadCrumbsBar: fix second row not preferredSize --- diff --git a/src/be/nikiroo/utils/ui/BreadCrumbsBar.java b/src/be/nikiroo/utils/ui/BreadCrumbsBar.java index ed20f929..8b993e64 100644 --- a/src/be/nikiroo/utils/ui/BreadCrumbsBar.java +++ b/src/be/nikiroo/utils/ui/BreadCrumbsBar.java @@ -152,7 +152,7 @@ public class BreadCrumbsBar 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) {