From b74954dd25afe2a4391dc6befc3866ab9528415d Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 4 Jan 2023 11:30:04 -0600 Subject: [PATCH] add logic for height Signed-off-by: Matt Bruce --- VDS/Components/TileContainer/TileContainer.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/VDS/Components/TileContainer/TileContainer.swift b/VDS/Components/TileContainer/TileContainer.swift index f6086b47..40efde6d 100644 --- a/VDS/Components/TileContainer/TileContainer.swift +++ b/VDS/Components/TileContainer/TileContainer.swift @@ -82,8 +82,10 @@ open class TileContainer: Control { set { if newValue > 100 { _width = newValue - didChange() + } else { + _width = 100 } + didChange() } } @@ -270,7 +272,7 @@ open class TileContainer: Control { containerBottomConstraint?.constant = -padding containerTrailingConstraint?.constant = -padding - if aspectRatio == .none { + if aspectRatio == .none && height == nil{ widthConstraint?.constant = width heightConstraint?.isActive = false heightGreaterThanConstraint?.isActive = true