diff --git a/MVMCoreUI/Molecules/DesignedComponents/List/RightVariable/ListRightVariablePayments.swift b/MVMCoreUI/Molecules/DesignedComponents/List/RightVariable/ListRightVariablePayments.swift index 2fd75a66..34928e24 100644 --- a/MVMCoreUI/Molecules/DesignedComponents/List/RightVariable/ListRightVariablePayments.swift +++ b/MVMCoreUI/Molecules/DesignedComponents/List/RightVariable/ListRightVariablePayments.swift @@ -36,8 +36,6 @@ import Foundation stack.stackItems = [StackItem(andContain: leftLabel),StackItem(andContain: rightImage)] contentView.addSubview(stack) containerHelper.constrainView(stack) - leftLabel.setContentHuggingPriority(UILayoutPriority(rawValue: 901), for: .horizontal) - rightImage.setContentHuggingPriority(UILayoutPriority(rawValue: 902), for: .horizontal) } //---------------------------------------------------- @@ -57,7 +55,7 @@ import Foundation // Create a stack model to use for the internal stack and set the alignment of label and image let leftLabel = StackItemModel() - leftLabel.horizontalAlignment = .fill + leftLabel.horizontalAlignment = .leading let rightImage = StackItemModel() rightImage.horizontalAlignment = .trailing let stackModel = StackModel(molecules: [leftLabel,rightImage]) diff --git a/MVMCoreUI/Molecules/DesignedComponents/List/RightVariable/ListRightVariablePaymentsModel.swift b/MVMCoreUI/Molecules/DesignedComponents/List/RightVariable/ListRightVariablePaymentsModel.swift index 08a6f3cb..3478cda1 100644 --- a/MVMCoreUI/Molecules/DesignedComponents/List/RightVariable/ListRightVariablePaymentsModel.swift +++ b/MVMCoreUI/Molecules/DesignedComponents/List/RightVariable/ListRightVariablePaymentsModel.swift @@ -26,12 +26,6 @@ public class ListRightVariablePaymentsModel: ContainerModel, ListItemModelProtoc if useVerticalMargins == nil { useVerticalMargins = true } - if image.height == nil { - image.height = 16.0 - } - if image.width == nil { - image.height = 56.0 - } } public init(image: ImageViewModel, leftLabel: LabelModel) {