This repository has been archived by the owner on May 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 440
Fix #1803: Constraint runtime errors. #1736
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iccub
force-pushed
the
nobug/constraint_fixes
branch
3 times, most recently
from
October 28, 2019 13:03
a956c3d
to
24965df
Compare
7 tasks
iccub
added
the
blocked
If a ticket is blocked for some reason, if not using a sub-block label, please provide info in issue
label
Oct 28, 2019
Brandon-T
suggested changes
Oct 31, 2019
override func layoutSubviews() { | ||
super.layoutSubviews() | ||
|
||
scrollView.snp.remakeConstraints { |
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.
Hmm, is there a reason we constrain the scrollView in layoutSubviews
?
Just wondering if this will trigger another layout.
I tested it and it doesn't seem to trigger anything so looks good to me.
Brandon-T
approved these changes
Oct 31, 2019
Brandon-T
reviewed
Oct 31, 2019
} | ||
|
||
stackView.snp.remakeConstraints { | ||
$0.edges.equalToSuperview() |
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 works. It will also work if constrained to the contentLayoutGuide.
IE: scrollView.frameLayoutGuide.constrain(to: self)
and stackView.constrain(to: scrollView.contentLayoutGuide)
.
But your code works so it's fine :)
@iccub Please rebase :) |
kylehickinson
removed
the
blocked
If a ticket is blocked for some reason, if not using a sub-block label, please provide info in issue
label
Nov 7, 2019
iccub
force-pushed
the
nobug/constraint_fixes
branch
from
November 8, 2019 10:47
24965df
to
b6dbfa3
Compare
This was referenced Nov 13, 2019
7 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of Changes
This fixes some constraint problems in:
There's one error I couldn't fix, shows up when keybard is shown for the first time
This pull request fixes issue #1803
Submitter Checklist:
NSLocalizableString()
Test Plan:
This is for reviewer: run the app and look at logs if there's still some constraint errors.
Screenshots:
Reviewer Checklist:
QA/(Yes|No)
release-notes/(include|exclude)
bug
/enhancement