[haiku-commits] haiku: hrev46430 - src/apps/haiku-depot

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 24 Nov 2013 20:43:11 +0100 (CET)

hrev46430 adds 1 changeset to branch 'master'
old head: 0e3e70a00cff83bca83e6f411a1e77756b9575ac
new head: 62d2f838eb215dbb202daff723c6be49af2096fb
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=62d2f83+%5E0e3e70a

----------------------------------------------------------------------------

62d2f83: 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.

                                      [ Stephan Aßmus <superstippi@xxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev46430
Commit:      62d2f838eb215dbb202daff723c6be49af2096fb
URL:         http://cgit.haiku-os.org/haiku/commit/?id=62d2f83
Author:      Stephan Aßmus <superstippi@xxxxxx>
Date:        Sun Nov 24 19:41:39 2013 UTC

----------------------------------------------------------------------------

1 file changed, 5 insertions(+), 2 deletions(-)
src/apps/haiku-depot/FilterView.cpp | 7 +++++--

----------------------------------------------------------------------------

diff --git a/src/apps/haiku-depot/FilterView.cpp 
b/src/apps/haiku-depot/FilterView.cpp
index e37e8b5..d85d0dd 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)
 


Other related posts:

  • » [haiku-commits] haiku: hrev46430 - src/apps/haiku-depot - superstippi