[haiku-commits] r41686 - haiku/trunk/src/apps/mediaconverter

  • From: yourpalal2@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 23 May 2011 20:27:30 +0200 (CEST)

Author: yourpalal
Date: 2011-05-23 20:27:29 +0200 (Mon, 23 May 2011)
New Revision: 41686
Changeset: https://dev.haiku-os.org/changeset/41686

Modified:
   haiku/trunk/src/apps/mediaconverter/MediaConverterWindow.cpp
   haiku/trunk/src/apps/mediaconverter/MediaFileInfoView.cpp
Log:
* Fix layout problem which appeared with the introduction of 
CollapsingLayouter. Basically, one of the layouts expected empty columns to act 
like glue, which is how they worked at the time. Now use 
BSpaceLayoutItem::CreateGlue() to get equivalent behaviour.
* Also do a very small bit of refactoring, to have MediaFileInfoView take 
better charge of its max size.
+alpha


Modified: haiku/trunk/src/apps/mediaconverter/MediaConverterWindow.cpp
===================================================================
--- haiku/trunk/src/apps/mediaconverter/MediaConverterWindow.cpp        
2011-05-23 18:01:59 UTC (rev 41685)
+++ haiku/trunk/src/apps/mediaconverter/MediaConverterWindow.cpp        
2011-05-23 18:27:29 UTC (rev 41686)
@@ -142,7 +142,6 @@
        fInfoBox = new BBox(B_FANCY_BORDER, fInfoView);
        fInfoBox->SetExplicitAlignment(BAlignment(B_ALIGN_USE_FULL_WIDTH,
                        B_ALIGN_USE_FULL_HEIGHT));
-       fInfoBox->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET));
 
        float padding = be_control_look->DefaultItemSpacing();
 
@@ -232,6 +231,7 @@
                        .SetInsets(padding, 0, padding, padding)
                        .Add(fStatus, 0, 0)
                        .Add(fFileStatus, 0, 1)
+                       .Add(BSpaceLayoutItem::CreateGlue(), 1, 0)
                        .Add(fPreviewButton, 2, 0)
                        .Add(fConvertButton, 3, 0)
                .End()

Modified: haiku/trunk/src/apps/mediaconverter/MediaFileInfoView.cpp
===================================================================
--- haiku/trunk/src/apps/mediaconverter/MediaFileInfoView.cpp   2011-05-23 
18:01:59 UTC (rev 41685)
+++ haiku/trunk/src/apps/mediaconverter/MediaFileInfoView.cpp   2011-05-23 
18:27:29 UTC (rev 41686)
@@ -90,7 +90,7 @@
 BSize
 MediaFileInfoView::MaxSize()
 {
-       return fMinSize;
+       return BSize(B_SIZE_UNLIMITED, fMinSize.height);
 }
 
 


Other related posts:

  • » [haiku-commits] r41686 - haiku/trunk/src/apps/mediaconverter - yourpalal2