From 5c38483e0c7db53fdf9900046b4c96fa73ac9141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 24 Nov 2013 21:20:31 +0100 Subject: [PATCH] HaikuDepot: Stableize layout of "About" page contents * Give the left group infinite width and use weighting to make it independent of the web and email links width. --- src/apps/haiku-depot/PackageInfoView.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/apps/haiku-depot/PackageInfoView.cpp b/src/apps/haiku-depot/PackageInfoView.cpp index 90aa77f4e6..49a1c58c12 100644 --- a/src/apps/haiku-depot/PackageInfoView.cpp +++ b/src/apps/haiku-depot/PackageInfoView.cpp @@ -669,20 +669,21 @@ public: BLayoutBuilder::Group<>(this, B_HORIZONTAL, 0.0f) // .Add(BSpaceLayoutItem::CreateHorizontalStrut(32.0f)) - .AddGroup(leftGroup) + .AddGroup(leftGroup, 1.0f) .Add(fScreenshotView) .AddGroup(B_HORIZONTAL) -// .AddGlue() .AddGrid(B_USE_HALF_ITEM_SPACING, B_USE_HALF_ITEM_SPACING) .Add(fEmailIconView, 0, 0) .Add(fEmailLinkView, 1, 0) .Add(fWebsiteIconView, 0, 1) .Add(fWebsiteLinkView, 1, 1) .End() + .AddGlue() .End() .SetInsets(B_USE_DEFAULT_SPACING) + .SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET)) .End() - .Add(scrollView, 1.0f) + .Add(scrollView, 2.0f) .SetExplicitMaxSize(BSize(B_SIZE_UNSET, B_SIZE_UNLIMITED)) .SetInsets(0.0f, -1.0f, -1.0f, -1.0f)