Fix for specific molecule
This commit is contained in:
parent
740545e9c3
commit
528ae8a685
@ -674,15 +674,9 @@ public typealias ActionBlock = () -> ()
|
|||||||
setScale(scale)
|
setScale(scale)
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func layoutSubviews() {
|
|
||||||
super.layoutSubviews()
|
|
||||||
|
|
||||||
// This fixes a defect for when there are multiple labels stacked in a list item. Sometime some labels will not fill their available space.
|
|
||||||
preferredMaxLayoutWidth = frame.width
|
|
||||||
}
|
|
||||||
|
|
||||||
@objc public func updateView(_ size: CGFloat) {
|
@objc public func updateView(_ size: CGFloat) {
|
||||||
scaleSize = size as NSNumber
|
scaleSize = size as NSNumber
|
||||||
|
|
||||||
if let originalAttributedString = originalAttributedString {
|
if let originalAttributedString = originalAttributedString {
|
||||||
let attributedString = NSMutableAttributedString(attributedString: originalAttributedString)
|
let attributedString = NSMutableAttributedString(attributedString: originalAttributedString)
|
||||||
attributedString.removeAttribute(.font, range: NSRange(location: 0, length: attributedString.length))
|
attributedString.removeAttribute(.font, range: NSRange(location: 0, length: attributedString.length))
|
||||||
@ -881,6 +875,10 @@ extension Label {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public func horizontalAlignment() -> UIStackView.Alignment {
|
||||||
|
return .leading
|
||||||
|
}
|
||||||
|
|
||||||
public func copyBackgroundColor() -> Bool {
|
public func copyBackgroundColor() -> Bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
@ -58,4 +58,9 @@ import Foundation
|
|||||||
super.reset()
|
super.reset()
|
||||||
leftLabel.styleTitle2XLarge(true)
|
leftLabel.styleTitle2XLarge(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open override func layoutSubviews() {
|
||||||
|
super.layoutSubviews()
|
||||||
|
eyebrowHeadlineBodyLink.body.preferredMaxLayoutWidth = eyebrowHeadlineBodyLink.frame.width
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user