-
Notifications
You must be signed in to change notification settings - Fork 399
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]? Popup does not wrap content (on Android) #1150
Comments
Try replacing VerticalStackLayout with Grid |
No sorry, did not work. |
@Dry-Tech you can set a size on popup, if it doesn't measure as you would like. And you can force the word wrap using the |
This issue may be resolved by PR #1361. |
In API Level 29 and below, the following method is used to obtain the height of the status bar, but this seems to be the problem. [src\CommunityToolkit.Maui.Core\Views\Popup\PopupExtensions.android.cs]
When you call the above method, the Label will not wrap.
If you can get the height of the status bar without calling the GetWindowVisibleDisplayFrame method, the problem for API Level 29 and below will be resolved. Below are the results of the operation verification of the latest version of main. [Use GetWindowVisibleDisplayFrame] [Don't use GetWindowVisibleDisplayFrame] API Level 30 and above is working as intended. Additional Information: @brminnick , I would like to hear your opinion. |
@brminnick , I found a solution. I found a way to calculate the status bar height without using the method below.
|
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Hello,
maybe I'm missing something very simple, but it seems that you can't use long texts as a label in a popup, because there is no line break and thus the popup will be wider than the display area.
I attached a sample repository and a screenshot.
Expected Behavior
Popup takes almost full width of the display because the text is so long, and the label text has line breaks when necessary.
Steps To Reproduce
Link to public reproduction project repository
https://github.com/Dry-Tech/NetMauiPopupNoWrapBug
Environment
Anything else?
The text was updated successfully, but these errors were encountered: