mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-06 12:18:26 +00:00
Update image view title margins before, instead of after, layout.
This commit is contained in:
1 parent
1e16ba125e
commit
a2a966f28d
1 file changed
+5
-1
@@ -72,9 +72,13 @@ final class ImageViewController: UIViewController {
|
||||
titleBackground.layer.cornerRadius = 6
|
||||
}
|
||||
|
||||
override func viewWillLayoutSubviews() {
|
||||
super.viewWillLayoutSubviews()
|
||||
layoutTitleLabel()
|
||||
}
|
||||
|
||||
override func viewDidLayoutSubviews() {
|
||||
super.viewDidLayoutSubviews()
|
||||
layoutTitleLabel()
|
||||
|
||||
let imageScrollViewSize = imageScrollView.bounds.size
|
||||
if imageScrollViewSize != lastImageScrollViewSize {
|
||||
|
||||
Reference in new issue
Block a user