Merge branch 'bugfix/header_width' into 'release/8_9_0'
main thread fixes See merge request BPHV_MIPS/mvm_core_ui!720
This commit is contained in:
commit
681e99ee77
@ -25,7 +25,7 @@ open class HeaderView: Container {
|
||||
guard let margins = molecule.superview?.layoutMarginsGuide else { return }
|
||||
containerHelper.rightConstraint?.isActive = false
|
||||
containerHelper.rightConstraint = margins.rightAnchor.constraint(equalTo: molecule.rightAnchor)
|
||||
containerHelper.rightConstraint?.priority = .defaultHigh
|
||||
containerHelper.rightConstraint?.priority = UILayoutPriority(rawValue: 999)
|
||||
containerHelper.rightConstraint?.isActive = true
|
||||
molecule.widthAnchor.constraint(equalToConstant: HeaderMaxWidth).isActive = true
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ public class MoleculeHeaderView: MoleculeContainer {
|
||||
guard let margins = molecule.superview?.layoutMarginsGuide else { return }
|
||||
containerHelper.rightConstraint?.isActive = false
|
||||
containerHelper.rightConstraint = margins.rightAnchor.constraint(equalTo: molecule.rightAnchor)
|
||||
containerHelper.rightConstraint?.priority = .defaultHigh
|
||||
containerHelper.rightConstraint?.priority = UILayoutPriority(rawValue: 999)
|
||||
containerHelper.rightConstraint?.isActive = true
|
||||
molecule.widthAnchor.constraint(lessThanOrEqualToConstant: HeaderMaxWidth).isActive = true
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user