Fixes incorrect initial size for website button on Source detail page

This commit is contained in:
Riley Testut
2023-12-08 14:53:25 -06:00
committed by Magesh K
parent abc7b8d933
commit 81af866268

View File

@@ -260,6 +260,14 @@ class HeaderContentViewController<Header: UIView, Content: ScrollableContentView
self.update()
}
override func viewIsAppearing(_ animated: Bool)
{
super.viewIsAppearing(animated)
// Ensure header view has correct layout dimensions.
self.headerView.setNeedsLayout()
}
override func viewDidAppear(_ animated: Bool)
{
super.viewDidAppear(animated)