From dbf95f726c1eceb728dc52e6051342e050244042 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Sat, 26 Nov 2022 16:37:48 -0500 Subject: [PATCH] fix preferredContentSize --- Mastodon/Scene/MediaPreview/AltViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mastodon/Scene/MediaPreview/AltViewController.swift b/Mastodon/Scene/MediaPreview/AltViewController.swift index b8f486890..305487397 100644 --- a/Mastodon/Scene/MediaPreview/AltViewController.swift +++ b/Mastodon/Scene/MediaPreview/AltViewController.swift @@ -63,7 +63,7 @@ class AltViewController: UIViewController { super.viewDidLayoutSubviews() UIView.performWithoutAnimation { preferredContentSize = CGSize( - width: label.intrinsicContentSize.width + view.layoutMargins.left + view.layoutMargins.right, + width: label.intrinsicContentSize.width + 16, height: label.intrinsicContentSize.height + view.layoutMargins.top + view.layoutMargins.bottom ) }