From 905c5e9fb06cbefe3cc2c4c7dffd810bb64141e5 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Fri, 20 Sep 2024 14:11:28 -0500 Subject: [PATCH] updated width Signed-off-by: Matt Bruce --- VDS/Components/Footnote/FootnoteGroup.swift | 2 +- VDS/Components/Footnote/FootnoteItem.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VDS/Components/Footnote/FootnoteGroup.swift b/VDS/Components/Footnote/FootnoteGroup.swift index 5d325d8b..4a2a00c7 100644 --- a/VDS/Components/Footnote/FootnoteGroup.swift +++ b/VDS/Components/Footnote/FootnoteGroup.swift @@ -83,7 +83,7 @@ open class FootnoteGroup: View { //-------------------------------------------------- // MARK: - Configuration Properties //-------------------------------------------------- - internal var maxWidth: CGFloat { horizontalPinnedWidth() ?? (superview?.frame.size.width ?? frame.size.width) } + internal var maxWidth: CGFloat { constrainedWidth } internal var minWidth: CGFloat { containerSize.width } internal var containerSize: CGSize { CGSize(width: 55, height: 44) } diff --git a/VDS/Components/Footnote/FootnoteItem.swift b/VDS/Components/Footnote/FootnoteItem.swift index 489c05be..1bbf7b26 100644 --- a/VDS/Components/Footnote/FootnoteItem.swift +++ b/VDS/Components/Footnote/FootnoteItem.swift @@ -152,7 +152,7 @@ open class FootnoteItem: View { //-------------------------------------------------- // MARK: - Configuration Properties //-------------------------------------------------- - internal var maxWidth: CGFloat { horizontalPinnedWidth() ?? (superview?.frame.size.width ?? frame.size.width) } + internal var maxWidth: CGFloat { constrainedWidth } internal var minWidth: CGFloat { containerSize.width } internal var containerSize: CGSize { CGSize(width: 45, height: 44) }