From f3f8d57a0be72d49751c55aab79e9c06aa3e2ebf Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Thu, 15 Aug 2019 10:59:25 -0400 Subject: [PATCH] timing fix... --- MVMCoreUI/Atoms/Views/Label.swift | 2 +- MVMCoreUI/Molecules/CornerLabels.swift | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index 8c41cefc..06ddbed5 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -182,7 +182,7 @@ public typealias ActionBlock = () -> Void switch alignment { case "center": label.textAlignment = .center - case "trailing": + case "right": label.textAlignment = .right default: label.textAlignment = .left diff --git a/MVMCoreUI/Molecules/CornerLabels.swift b/MVMCoreUI/Molecules/CornerLabels.swift index 18730336..930e1c57 100644 --- a/MVMCoreUI/Molecules/CornerLabels.swift +++ b/MVMCoreUI/Molecules/CornerLabels.swift @@ -133,26 +133,26 @@ import UIKit public override func setAsMolecule() { super.setAsMolecule() - topLeftLabel.setAsMolecule() - topRightLabel.setAsMolecule() - bottomLeftLabel.setAsMolecule() - bottomRightLabel.setAsMolecule() + styleDefault() } public override func reset() { super.reset() - topLeftLabel.styleB1(true) - topRightLabel.styleB1(true) - bottomLeftLabel.styleB3(true) - bottomRightLabel.styleB3(true) - + styleDefault() spaceAboveMolecule = 6.0 spaceBelowMolecule = 6.0 molecule?.reset?() } + func styleDefault() { + topLeftLabel.styleB1(true) + topRightLabel.styleB1(true) + bottomLeftLabel.styleB3(true) + bottomRightLabel.styleB3(true) + } + public override static func estimatedHeight(forRow json: [AnyHashable : Any]?, delegateObject: MVMCoreUIDelegateObject?) -> CGFloat { return 34 }