From 62d2f838eb215dbb202daff723c6be49af2096fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 24 Nov 2013 20:41:39 +0100 Subject: [PATCH] HaikuDepot: Improve filter view layout * Wrap the two menu fields into a group with unlimited size and give that a weight to achieve a stable width for the two which is independent from the active menu field entries. --- src/apps/haiku-depot/FilterView.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/apps/haiku-depot/FilterView.cpp b/src/apps/haiku-depot/FilterView.cpp index e37e8b5cd0..d85d0ddccf 100644 --- a/src/apps/haiku-depot/FilterView.cpp +++ b/src/apps/haiku-depot/FilterView.cpp @@ -69,8 +69,11 @@ FilterView::FilterView() // Build layout BLayoutBuilder::Group<>(this) - .Add(fShowField, 0.0f) - .Add(fRepositoryField, 0.0f) + .AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING, 1.2f) + .Add(fShowField, 0.0f) + .Add(fRepositoryField, 0.0f) + .SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET)) + .End() .AddGlue(0.5f) .Add(fSearchTermsText, 1.0f)