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