added property to help with instrinsic size
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
a4a560ecd7
commit
aacc2ca760
@ -76,6 +76,7 @@ open class TextLink: Control, Buttonable {
|
||||
//pin stackview to edges
|
||||
label.pinToSuperView()
|
||||
label.numberOfLines = 1
|
||||
label.preferredMaxLayoutWidth = 0
|
||||
heightConstraint = heightAnchor.constraint(equalToConstant: height)
|
||||
heightConstraint?.isActive = true
|
||||
}
|
||||
|
||||
@ -86,6 +86,7 @@ open class TextLinkCaret: Control, Buttonable {
|
||||
label.pinToSuperView()
|
||||
|
||||
label.numberOfLines = 1
|
||||
label.preferredMaxLayoutWidth = 0
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user