From b25b869c4d10257df5e405038bc4f311ff902b32 Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Mon, 25 Mar 2019 12:59:07 -0400 Subject: [PATCH] fix to size check --- MVMCoreUI/Molecules/StandardFooterView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCoreUI/Molecules/StandardFooterView.swift b/MVMCoreUI/Molecules/StandardFooterView.swift index 2cf85302..99880b9b 100644 --- a/MVMCoreUI/Molecules/StandardFooterView.swift +++ b/MVMCoreUI/Molecules/StandardFooterView.swift @@ -71,7 +71,7 @@ public class StandardFooterView: ViewConstrainingView { if !(twoButtonView.heightConstraint?.isActive ?? false) && textButton.title(for: UIControl.State.normal)?.count ?? 0 > 0 { spaceBetweenButtons?.constant = PaddingTwo show() - } else if twoButtonView.subviews.count > 0 || textButton.title(for: UIControl.State.normal)?.count ?? 0 > 0 { + } else if !(twoButtonView.heightConstraint?.isActive ?? false) || textButton.title(for: UIControl.State.normal)?.count ?? 0 > 0 { spaceBetweenButtons?.constant = 0 show() } else {