From aacc2ca760d487b1197a593d6df7beb58347a258 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 1 Dec 2022 11:34:24 -0600 Subject: [PATCH] added property to help with instrinsic size Signed-off-by: Matt Bruce --- VDS/Components/Buttons/TextLink/TextLink.swift | 1 + VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/VDS/Components/Buttons/TextLink/TextLink.swift b/VDS/Components/Buttons/TextLink/TextLink.swift index f3e8a6f3..516131cf 100644 --- a/VDS/Components/Buttons/TextLink/TextLink.swift +++ b/VDS/Components/Buttons/TextLink/TextLink.swift @@ -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 } diff --git a/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift b/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift index 577ff332..80c6dc99 100644 --- a/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift +++ b/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift @@ -86,6 +86,7 @@ open class TextLinkCaret: Control, Buttonable { label.pinToSuperView() label.numberOfLines = 1 + label.preferredMaxLayoutWidth = 0 }