in a row make everything the same height of the max height

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-12-02 09:53:26 -06:00
parent d08cce4800
commit 482ebc18a8

View File

@ -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
}
}