From cf4832bca7984053da7e029de9857e57444d6d90 Mon Sep 17 00:00:00 2001 From: "Suresh, Kamlesh" Date: Mon, 17 Feb 2020 13:39:13 -0500 Subject: [PATCH] fixes --- MVMCoreUI/Templates/IsaacLandingTemplate.swift | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MVMCoreUI/Templates/IsaacLandingTemplate.swift b/MVMCoreUI/Templates/IsaacLandingTemplate.swift index 99c716d6..0001c744 100644 --- a/MVMCoreUI/Templates/IsaacLandingTemplate.swift +++ b/MVMCoreUI/Templates/IsaacLandingTemplate.swift @@ -168,19 +168,19 @@ open class IsaacLandingTemplate: MoleculeListTemplate { let messageStackItem = MoleculeStackItemModel(with: messageLabel) let itemStack = MoleculeStackModel(molecules: [titleStackItem, messageStackItem]) - itemStack.useVerticalMargins = false - itemStack.topMarginPadding = 0 - - itemStack.verticalAlignment = .leading - itemStack.axis = .vertical + itemStack.verticalAlignment = .top itemStack.spacing = 0 - stackItems.append(MoleculeStackItemModel(with: itemStack)) + let horizontalStack = MoleculeStackItemModel(with: itemStack) + horizontalStack.verticalAlignment = .top + stackItems.append(horizontalStack) } + stackItems.first?.percent = 35 + stackItems.last?.percent = 65 let stack = MoleculeStackModel(molecules: stackItems) stack.axis = .horizontal - stack.spacing = 65 + stack.horizontalAlignment = .leading stack.verticalAlignment = .leading let listItem = MoleculeListItemModel(with: stack)