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.
This commit is contained in:
@@ -669,20 +669,21 @@ public:
|
|||||||
|
|
||||||
BLayoutBuilder::Group<>(this, B_HORIZONTAL, 0.0f)
|
BLayoutBuilder::Group<>(this, B_HORIZONTAL, 0.0f)
|
||||||
// .Add(BSpaceLayoutItem::CreateHorizontalStrut(32.0f))
|
// .Add(BSpaceLayoutItem::CreateHorizontalStrut(32.0f))
|
||||||
.AddGroup(leftGroup)
|
.AddGroup(leftGroup, 1.0f)
|
||||||
.Add(fScreenshotView)
|
.Add(fScreenshotView)
|
||||||
.AddGroup(B_HORIZONTAL)
|
.AddGroup(B_HORIZONTAL)
|
||||||
// .AddGlue()
|
|
||||||
.AddGrid(B_USE_HALF_ITEM_SPACING, B_USE_HALF_ITEM_SPACING)
|
.AddGrid(B_USE_HALF_ITEM_SPACING, B_USE_HALF_ITEM_SPACING)
|
||||||
.Add(fEmailIconView, 0, 0)
|
.Add(fEmailIconView, 0, 0)
|
||||||
.Add(fEmailLinkView, 1, 0)
|
.Add(fEmailLinkView, 1, 0)
|
||||||
.Add(fWebsiteIconView, 0, 1)
|
.Add(fWebsiteIconView, 0, 1)
|
||||||
.Add(fWebsiteLinkView, 1, 1)
|
.Add(fWebsiteLinkView, 1, 1)
|
||||||
.End()
|
.End()
|
||||||
|
.AddGlue()
|
||||||
.End()
|
.End()
|
||||||
.SetInsets(B_USE_DEFAULT_SPACING)
|
.SetInsets(B_USE_DEFAULT_SPACING)
|
||||||
|
.SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET))
|
||||||
.End()
|
.End()
|
||||||
.Add(scrollView, 1.0f)
|
.Add(scrollView, 2.0f)
|
||||||
|
|
||||||
.SetExplicitMaxSize(BSize(B_SIZE_UNSET, B_SIZE_UNLIMITED))
|
.SetExplicitMaxSize(BSize(B_SIZE_UNSET, B_SIZE_UNLIMITED))
|
||||||
.SetInsets(0.0f, -1.0f, -1.0f, -1.0f)
|
.SetInsets(0.0f, -1.0f, -1.0f, -1.0f)
|
||||||
|
|||||||
Reference in New Issue
Block a user