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.
This commit is contained in:
Stephan Aßmus
2013-11-24 20:41:39 +01:00
parent 0e3e70a00c
commit 62d2f838eb
+5 -2
View File
@@ -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)