Repository navigation
[iOS] Fix bug with padding on ScrollViewer - #2735
Merged
Merged
Conversation
carldebilly
commented
Mar 3, 2020
carldebilly
commented
Mar 3, 2020
davidjohnoliver
left a comment
Contributor
There was a problem hiding this comment.
Would be ideal to have a runtime unit test verifying the correct numbers.
carldebilly
force-pushed
the
dev/cdb/bugs/layout-remaining-bugs
branch
from
March 3, 2020 20:58
f53cf39 to
9abe29c
Compare
1 of 12 tasks
carldebilly
force-pushed
the
dev/cdb/bugs/layout-remaining-bugs
branch
from
March 4, 2020 14:29
9abe29c to
d0f3942
Compare
The "DesiredSize" must include the margins, it wasn't the case for those controls. Fix #2703
carldebilly
force-pushed
the
dev/cdb/bugs/layout-remaining-bugs
branch
from
March 4, 2020 14:36
d0f3942 to
2273a84
Compare
carldebilly
force-pushed
the
dev/cdb/bugs/layout-remaining-bugs
branch
from
March 4, 2020 15:27
2273a84 to
080a17c
Compare
Fix CI for WASM
Contributor
|
The build 12776 found UI Test snapshots differences.
|
jeromelaban
approved these changes
Mar 4, 2020
Member
|
@Mergifyio backport release/beta/2.1 |
Contributor
|
Command
|
jeromelaban
added a commit
that referenced
this pull request
Mar 11, 2020
…/pr-2735 [iOS] Fix bug with padding on ScrollViewer (bp #2735)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
GitHub Issue (If applicable): #2703
Bugfix
What is the current behavior?
If the
generic.xamlof Uno, the<ScrollViewer>control template will convert thePaddinginto aMarginapplied to the inner<ScrollContentPresenter>:uno/src/Uno.UI/UI/Xaml/Style/Generic/Generic.xaml
Line 4716 in 3e231f1
But this
Marginis not getting included in theDesiredSizeas the output of the Measure phase. This happend because<ScrollContentPresenter>is NOT aFrameworkElement, on iOS, it's aUIScrollView(native control). So there's no layouter in it and the desired size must be calculated by the parent element's layouter.What is the new behavior?
After calling
.SizeThatFits()on a native, non-FrameworkElementcontrol, the.Marginis applied and stored as the desired size for the control.PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.