timing fix...
This commit is contained in:
parent
d5e49d0e5a
commit
f3f8d57a0b
@ -182,7 +182,7 @@ public typealias ActionBlock = () -> Void
|
|||||||
switch alignment {
|
switch alignment {
|
||||||
case "center":
|
case "center":
|
||||||
label.textAlignment = .center
|
label.textAlignment = .center
|
||||||
case "trailing":
|
case "right":
|
||||||
label.textAlignment = .right
|
label.textAlignment = .right
|
||||||
default:
|
default:
|
||||||
label.textAlignment = .left
|
label.textAlignment = .left
|
||||||
|
|||||||
@ -133,26 +133,26 @@ import UIKit
|
|||||||
|
|
||||||
public override func setAsMolecule() {
|
public override func setAsMolecule() {
|
||||||
super.setAsMolecule()
|
super.setAsMolecule()
|
||||||
topLeftLabel.setAsMolecule()
|
styleDefault()
|
||||||
topRightLabel.setAsMolecule()
|
|
||||||
bottomLeftLabel.setAsMolecule()
|
|
||||||
bottomRightLabel.setAsMolecule()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override func reset() {
|
public override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
|
|
||||||
topLeftLabel.styleB1(true)
|
styleDefault()
|
||||||
topRightLabel.styleB1(true)
|
|
||||||
bottomLeftLabel.styleB3(true)
|
|
||||||
bottomRightLabel.styleB3(true)
|
|
||||||
|
|
||||||
spaceAboveMolecule = 6.0
|
spaceAboveMolecule = 6.0
|
||||||
spaceBelowMolecule = 6.0
|
spaceBelowMolecule = 6.0
|
||||||
|
|
||||||
molecule?.reset?()
|
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 {
|
public override static func estimatedHeight(forRow json: [AnyHashable : Any]?, delegateObject: MVMCoreUIDelegateObject?) -> CGFloat {
|
||||||
return 34
|
return 34
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user