[haiku-commits] haiku: hrev48349 - src/apps/diskprobe

  • From: pulkomandy@xxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 20 Nov 2014 14:13:58 +0100 (CET)

hrev48349 adds 1 changeset to branch 'master'
old head: 23b89f011f1399beec949c55f49183a81170c526
new head: c2a13372aa00b3d9739c8d01c735f9f0c1a77e0c
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=c2a1337+%5E23b89f0

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

c2a1337: DiskProbe: don't set a maximal size for the data view
  
  We want the view to expand and fill the horizontal space as much as
  possible.

                                 [ Adrien Destugues <pulkomandy@xxxxxxxxx> ]

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

Revision:    hrev48349
Commit:      c2a13372aa00b3d9739c8d01c735f9f0c1a77e0c
URL:         http://cgit.haiku-os.org/haiku/commit/?id=c2a1337
Author:      Adrien Destugues <pulkomandy@xxxxxxxxx>
Date:        Thu Nov 20 13:12:10 2014 UTC

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

1 file changed, 2 insertions(+), 1 deletion(-)
src/apps/diskprobe/DataView.cpp | 3 ++-

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

diff --git a/src/apps/diskprobe/DataView.cpp b/src/apps/diskprobe/DataView.cpp
index 1bcf56a..3d6d5d4 100644
--- a/src/apps/diskprobe/DataView.cpp
+++ b/src/apps/diskprobe/DataView.cpp
@@ -911,7 +911,8 @@ DataView::UpdateScroller()
        GetPreferredSize(&width, &height);
 
        SetExplicitMinSize(BSize(250, 200));
-       SetExplicitMaxSize(BSize(width, height));
+       SetExplicitMaxSize(BSize(B_SIZE_UNSET, height));
+       SetExplicitPreferredSize(BSize(width, height));
 
        BScrollBar *bar;
        if ((bar = ScrollBar(B_HORIZONTAL)) != NULL) {


Other related posts:

  • » [haiku-commits] haiku: hrev48349 - src/apps/diskprobe - pulkomandy