Skip to content

[BUG] Popup does not wrap content on Android after content changes #1603

@Kas-code

Description

@Kas-code

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

If I have a popup with labels that contain long text, such that the text wraps on more than one line, then initially when the popup opens, the text displays fine.
But, if the popup contains an element that might change content, such as an editor, then upon changing the content, the label text does a re-layout and no longer wraps.
Interestingly, the label maintains the height that the wrapped text should have.
The issue is similar to this one: #1150 but the popup displays fine on first appearance, it is only when you click in an editor to type some text that the issue appears.

Expected Behavior

The label text should wrap even after changing content

Steps To Reproduce

  1. Run the sample project
  2. Open the popup, observe that the label text wraps. This is fine:
    image
  3. Click in the editor in order to type some text, the label suddenly does a re-layout and no longer wraps:
    image

Link to public reproduction project repository

https://github.com/Kas-code/NetMauiPopupNoWrapBug

Environment

- .NET MAUI CommunityToolkit: 7.0.0
- OS: Android version 8 (API level 26)
- .NET MAUI: 8.0.3

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/viewsIssue/Discussion/PR that has to do with ViewsbugSomething isn't workingunverified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions