From 482ebc18a8f4cfa0d3d6bf2c04dbc615d7349311 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Fri, 2 Dec 2022 09:53:26 -0600 Subject: [PATCH] in a row make everything the same height of the max height Signed-off-by: Matt Bruce --- .../Buttons/ButtonGroup/ButtonGroupPositionLayout.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/VDS/Components/Buttons/ButtonGroup/ButtonGroupPositionLayout.swift b/VDS/Components/Buttons/ButtonGroup/ButtonGroupPositionLayout.swift index 32bdab7b..aea4e7f6 100644 --- a/VDS/Components/Buttons/ButtonGroup/ButtonGroupPositionLayout.swift +++ b/VDS/Components/Buttons/ButtonGroup/ButtonGroupPositionLayout.swift @@ -42,7 +42,7 @@ class ButtonCollectionViewRow { func layout(for position: ButtonPosition, with collectionViewWidth: CGFloat){ var offset = 0.0 - + let height = rowHeight attributes.last?.spacing = 0 switch position { @@ -56,6 +56,9 @@ class ButtonCollectionViewRow { for attribute in attributes { attribute.frame.origin.x = offset + if attribute.frame.height < height { + attribute.frame.size.height = height + } offset += attribute.frame.width + attribute.spacing } }