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:
parent
d08cce4800
commit
482ebc18a8
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user