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:
Suresh, Kamlesh Jain 2021-05-19 10:14:39 -04:00
commit 681e99ee77
2 changed files with 2 additions and 2 deletions

View File

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

View File

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