Code changes as per review comments.

This commit is contained in:
Lekshmi S 2020-05-12 18:25:43 +05:30
parent efeb82220c
commit a2a1f95631
2 changed files with 3 additions and 3 deletions

View File

@ -959,8 +959,8 @@
AAA74A162410C04600080241 /* HeadersH2NoButtonsBodyText.swift */,
AA26850D244840C300CE34CC /* HeadersH2TinyButtonModel.swift */,
AA26850B244840AE00CE34CC /* HeadersH2TinyButton.swift */,
AA104B1924474A66004D2810 /* HeadersH2Buttons.swift */,
AA104B1B24474A76004D2810 /* HeadersH2ButtonsModel.swift */,
AA104B1924474A66004D2810 /* HeadersH2Buttons.swift */,
);
path = Headers;
sourceTree = "<group>";

View File

@ -21,7 +21,8 @@ import Foundation
//-------------------------------------------------------
open override func setupView() {
super.setupView()
stack = Stack<StackModel>.createStack(with: [(view: headlineBody, model: StackItemModel(horizontalAlignment: .fill)), (view: buttons, model: StackItemModel(spacing: PaddingDefaultVerticalSpacing3, horizontalAlignment: .leading))], axis: .vertical)
stack.model = StackModel(molecules: [], axis: .vertical, spacing: 0)
stack.set(with: [(view: headlineBody, model: StackItemModel(horizontalAlignment: .fill)), (view: buttons, model: StackItemModel(spacing: PaddingDefaultVerticalSpacing3, horizontalAlignment: .fill))])
headlineBody.stylePageHeader()
addMolecule(stack)
stack.restack()
@ -44,6 +45,5 @@ import Foundation
open override func reset() {
super.reset()
headlineBody.stylePageHeader()
buttons.reset()
}
}