-
-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed content view size to be correct #444
Conversation
Tests/SurfaceViewTests.swift
Outdated
let contentView = UIView() | ||
let titleLabel = UILabel() | ||
contentView.addSubview(titleLabel) | ||
contentView.translatesAutoresizingMaskIntoConstraints = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should be titleLabel.translatesAutoresizingMaskIntoConstraints = false
. And if it changes, then this test case is passed even if the priority is still .required - 1
. So this test case is not a sufficient reason for the priority change.
The background where the priority was set to .required - 1(= 999)
is #359. So we have to take care of its case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for pointing out the test mistake.
I will rethink
Hi, This PR fixed my issue with content size when I use uicollectionview with animated snapshot inside content view. |
@Batvos Is |
Thank you for fixing the bug. |
Content view size is incorrect when using autolayout for content view.
Fixed content view size to be correct.
maybe related #259