padding correction.

This commit is contained in:
Kevin G Christiano 2019-08-12 13:28:20 -04:00
parent fd8b8fb7b7
commit 444fbc65f5

View File

@ -118,11 +118,9 @@ import UIKit
imageLoader.updateView(size) imageLoader.updateView(size)
leftContainer.updateView(size) leftContainer.updateView(size)
let titleMessagePadding = title.hasText ? bottomTitlePadding : 0 let topPadding = title.hasText ? bottomTitlePadding : 0
let messageButtonPadding = message.hasText ? titleMessagePadding : 0 messageTopConstraint?.constant = topPadding
buttonTopConstraint?.constant = message.hasText ? PaddingTwo : topPadding
messageTopConstraint?.constant = messageButtonPadding
buttonTopConstraint?.constant = message.hasText ? PaddingTwo : messageButtonPadding
} }
public override static func estimatedHeight(forRow json: [AnyHashable: Any]?, delegateObject: MVMCoreUIDelegateObject?) -> CGFloat { public override static func estimatedHeight(forRow json: [AnyHashable: Any]?, delegateObject: MVMCoreUIDelegateObject?) -> CGFloat {