timing fix...

This commit is contained in:
Pfeil, Scott Robert 2019-08-15 10:59:25 -04:00
parent d5e49d0e5a
commit f3f8d57a0b
2 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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
}