-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Add children to separate _containerView, if needed #46189
Conversation
This pull request was exported from Phabricator. Differential Revision: D61414649 |
This pull request was exported from Phabricator. Differential Revision: D61414649 |
Summary: Pull Request resolved: facebook#46189 A lot of the style decorators we have (filters, box shadows, borders, etc) use a separate sub-CALayer to accomplish what they want. This becomes an issue if we are clipping the content to the bounds and if these decorators extend beyond the bounds of the view as they are typically unaffected by this clipping. The main things here are `box-shadow` and `outline`. However, this implementation will let us fix some issues w.r.t content rendering under borders. See later diffs for that. To fix this, if needed, we insert a `_containerView` to contain all of our subviews, and actually apply the clipping to. If this exists, our UIView will only have one subview, this one. But it may have multiple sublayers. NOTE: This diff does not actually redirect the clipping. It just inserts the subview to test if this breaks anything in and of itself. Changelog: [Internal] Reviewed By: lenaic Differential Revision: D61414649
f60dbd4
to
dab820e
Compare
This pull request was exported from Phabricator. Differential Revision: D61414649 |
Summary: Pull Request resolved: facebook#46189 A lot of the style decorators we have (filters, box shadows, borders, etc) use a separate sub-CALayer to accomplish what they want. This becomes an issue if we are clipping the content to the bounds and if these decorators extend beyond the bounds of the view as they are typically unaffected by this clipping. The main things here are `box-shadow` and `outline`. However, this implementation will let us fix some issues w.r.t content rendering under borders. See later diffs for that. To fix this, if needed, we insert a `_containerView` to contain all of our subviews, and actually apply the clipping to. If this exists, our UIView will only have one subview, this one. But it may have multiple sublayers. NOTE: This diff does not actually redirect the clipping. It just inserts the subview to test if this breaks anything in and of itself. Changelog: [Internal] Reviewed By: lenaic Differential Revision: D61414649
dab820e
to
14035ff
Compare
This pull request was exported from Phabricator. Differential Revision: D61414649 |
Summary: Pull Request resolved: facebook#46189 A lot of the style decorators we have (filters, box shadows, borders, etc) use a separate sub-CALayer to accomplish what they want. This becomes an issue if we are clipping the content to the bounds and if these decorators extend beyond the bounds of the view as they are typically unaffected by this clipping. The main things here are `box-shadow` and `outline`. However, this implementation will let us fix some issues w.r.t content rendering under borders. See later diffs for that. To fix this, if needed, we insert a `_containerView` to contain all of our subviews, and actually apply the clipping to. If this exists, our UIView will only have one subview, this one. But it may have multiple sublayers. NOTE: This diff does not actually redirect the clipping. It just inserts the subview to test if this breaks anything in and of itself. Changelog: [Internal] Reviewed By: lenaic Differential Revision: D61414649
14035ff
to
38ae8e6
Compare
This pull request was exported from Phabricator. Differential Revision: D61414649 |
38ae8e6
to
c61ec84
Compare
Summary: Pull Request resolved: facebook#46189 A lot of the style decorators we have (filters, box shadows, borders, etc) use a separate sub-CALayer to accomplish what they want. This becomes an issue if we are clipping the content to the bounds and if these decorators extend beyond the bounds of the view as they are typically unaffected by this clipping. The main things here are `box-shadow` and `outline`. However, this implementation will let us fix some issues w.r.t content rendering under borders. See later diffs for that. To fix this, if needed, we insert a `_containerView` to contain all of our subviews, and actually apply the clipping to. If this exists, our UIView will only have one subview, this one. But it may have multiple sublayers. NOTE: This diff does not actually redirect the clipping. It just inserts the subview to test if this breaks anything in and of itself. Changelog: [Internal] Reviewed By: lenaic Differential Revision: D61414649
Summary: Pull Request resolved: facebook#46189 A lot of the style decorators we have (filters, box shadows, borders, etc) use a separate sub-CALayer to accomplish what they want. This becomes an issue if we are clipping the content to the bounds and if these decorators extend beyond the bounds of the view as they are typically unaffected by this clipping. The main things here are `box-shadow` and `outline`. However, this implementation will let us fix some issues w.r.t content rendering under borders. See later diffs for that. To fix this, if needed, we insert a `_containerView` to contain all of our subviews, and actually apply the clipping to. If this exists, our UIView will only have one subview, this one. But it may have multiple sublayers. NOTE: This diff does not actually redirect the clipping. It just inserts the subview to test if this breaks anything in and of itself. Changelog: [Internal] Reviewed By: lenaic Differential Revision: D61414649
This pull request was exported from Phabricator. Differential Revision: D61414649 |
c61ec84
to
ed204d7
Compare
This pull request has been merged in 2176866. |
This pull request was successfully merged by @joevilches in 2176866 When will my fix make it into a release? | How to file a pick request? |
Summary:
A lot of the style decorators we have (filters, box shadows, borders, etc) use a separate sub-CALayer to accomplish what they want. This becomes an issue if we are clipping the content to the bounds and if these decorators extend beyond the bounds of the view as they are typically unaffected by this clipping. The main things here are
box-shadow
andoutline
. However, this implementation will let us fix some issues w.r.t content rendering under borders. See later diffs for that.To fix this, if needed, we insert a
_containerView
to contain all of our subviews, and actually apply the clipping to. If this exists, our UIView will only have one subview, this one. But it may have multiple sublayers.NOTE: This diff does not actually redirect the clipping. It just inserts the subview to test if this breaks anything in and of itself.
Changelog: [Internal]
Reviewed By: lenaic
Differential Revision: D61414649