-
Notifications
You must be signed in to change notification settings - Fork 381
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
[BUG] Android popup. Layout breaks if data is populated after the popup is shown. #1423
Comments
This is caused by the following process added to redraw the Popup when the screen is rotated. [src\CommunityToolkit.Maui.Core\Handlers\Popup\PopUpHandler.android.cs]
Abolishing the above call will resolve this issue, but another problem will occur because redrawing |
The PR #1361 I created should resolve this issue. Android.Emulator.-.pixel_2_-_api_30_5554.2023-09-27.14-02-55.mp4I thought this was an unresolved issue and was investigating it separately, |
It looks like PR #1361 needs further fixes. |
As a workaround just put |
@brminnick , I resolved this issue with PR #1361. Thank you for your review of PR #1361. |
Thanks for confirming! Fixed in #1423 |
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Populating labels after the popup is shown causes layout issues on Android. This is a huge issue if you need to use any sort of binding inside the popup.
When the labels are populated immediately
When the labels are populated a split second later, by a binding for isntance.
As you can see the longer labels don't split into multiple lines correctly, or the single line label doesn't respect
HorizontalTextAlignment
. I have tried couple of layouts includingGrid
andStackLayout
orScrollView
but no combination fixes the issue.Expected Behavior
Changing / Setting text values for labels or other text based controls shouldn't break layouts inside the popup.
Steps To Reproduce
Text
values for the labelsLink to public reproduction project repository
https://github.com/Hooterr/PopupLayoutIssue
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: