fixed bug of adding space between 2 times
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
30a4b1e0f7
commit
dcc0307e9b
@ -64,7 +64,7 @@ class ButtonCollectionViewRow {
|
||||
|
||||
//see how much of the rows width is used for
|
||||
//non-buttons that are BaseButton Subclasses that are not "Button"
|
||||
let nonButtonSpace = attributes.filter { !$0.isButton }.reduce(0.0) { $0 + $1.frame.width + $1.spacing }
|
||||
let nonButtonSpace = attributes.filter { !$0.isButton }.reduce(0.0) { $0 + $1.frame.width }
|
||||
|
||||
//getting available button space since textlinks need their space
|
||||
let buttonsAvailableSpace = collectionViewWidth - nonButtonSpace - totalSpacingBetweenAttributes
|
||||
|
||||
Loading…
Reference in New Issue
Block a user