-
Notifications
You must be signed in to change notification settings - Fork 747
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
[Android] StackPanel
does not use the return of child Arrange
causing aligment issues
#3347
Comments
StackPanel
does not use the return of child Arrange
causing aligment issues
A more minimal repro is
The problem is not with StackPanel, but with ContentControl. On Android (and iOS, but I didn't test), we don't follow the WinUI template for ContentControl, which specifies Top and Left alignments for the inner ContentPresenter (by a TemplateBinding). Matching the template fixes the issues, but we left it that way as it caused other issues, so I guess this is blocked for now. |
I have #13069 but wasn't able to complete it. |
This will likely be fixed by #18261 |
Old bug finally fixed :-) Great job. |
Current behavior
With the visual tree:
The
ContentPresenter.Content
has the width of the parent (aCanvas
) and is not aligned properly.Expected behavior
How to reproduce it (as minimally and precisely as possible)
cf. issue (private) linked below
==> Another repro which might be easier to investigate: #3755
Workaround
Manually align (usually
Left
) the control.Environment
Nuget Package: Uno.UI
Package Version(s): 3.0
Affected platform(s):
Visual Studio: irrelevant
Relevant plugins: none
Anything else we need to know?
This might have been fixed by https://github.com/unoplatform/uno/commits/dev/cdb/bugs/layout-bugs-big-refactoring (@carldebilly )
The text was updated successfully, but these errors were encountered: