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