add logic for height
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
410ee5afdf
commit
b74954dd25
@ -82,8 +82,10 @@ open class TileContainer: Control {
|
|||||||
set {
|
set {
|
||||||
if newValue > 100 {
|
if newValue > 100 {
|
||||||
_width = newValue
|
_width = newValue
|
||||||
didChange()
|
} else {
|
||||||
|
_width = 100
|
||||||
}
|
}
|
||||||
|
didChange()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -270,7 +272,7 @@ open class TileContainer: Control {
|
|||||||
containerBottomConstraint?.constant = -padding
|
containerBottomConstraint?.constant = -padding
|
||||||
containerTrailingConstraint?.constant = -padding
|
containerTrailingConstraint?.constant = -padding
|
||||||
|
|
||||||
if aspectRatio == .none {
|
if aspectRatio == .none && height == nil{
|
||||||
widthConstraint?.constant = width
|
widthConstraint?.constant = width
|
||||||
heightConstraint?.isActive = false
|
heightConstraint?.isActive = false
|
||||||
heightGreaterThanConstraint?.isActive = true
|
heightGreaterThanConstraint?.isActive = true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user