Merge branch 'bugfix/missed_heavy_line' into 'develop'

Bugfix/missed heavy line

See merge request BPHV_MIPS/mvm_core_ui!880
This commit is contained in:
Bruce, Matt R 2022-07-12 15:08:19 +00:00
commit a2fcc59f38
3 changed files with 2 additions and 7 deletions

View File

@ -41,7 +41,7 @@ public class HeadersH2TinyButtonModel: HeaderModel, MoleculeModelProtocol {
}
super.setDefaults()
button.style = .secondary
button.size = .tiny
button.size = .small
}
//--------------------------------------------------

View File

@ -51,9 +51,7 @@ open class HeaderView: Container {
open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) {
super.set(with: model, delegateObject, additionalData)
guard let headerModel = headerModel else { return }
if let lineModel = headerModel.line {
line.set(with: lineModel, delegateObject, additionalData)
}
line.setOptional(with: headerModel.line, delegateObject, additionalData)
}
open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {

View File

@ -30,9 +30,6 @@
if bottomPadding == nil {
bottomPadding = PaddingDefaultVerticalSpacing
}
if line == nil {
line = LineModel(type: .heavy)
}
}
public override init() {