Merge branch 'bugfix/label_stack_list_layout' into 'develop'
Bugfix/label stack list layout See merge request BPHV_MIPS/mvm_core_ui!459
This commit is contained in:
commit
8fdb4c3e14
@ -677,6 +677,9 @@ public typealias ActionBlock = () -> ()
|
||||
@objc public func updateView(_ size: CGFloat) {
|
||||
scaleSize = size as NSNumber
|
||||
|
||||
// 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 = size
|
||||
|
||||
if let originalAttributedString = originalAttributedString {
|
||||
let attributedString = NSMutableAttributedString(attributedString: originalAttributedString)
|
||||
attributedString.removeAttribute(.font, range: NSRange(location: 0, length: attributedString.length))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user