Skip to content

[BUG] <li> are rendered in the same line when shrinkWrap is true #1280

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

Closed
krille-chan opened this issue May 22, 2023 · 0 comments · Fixed by #1281
Closed

[BUG] <li> are rendered in the same line when shrinkWrap is true #1280

krille-chan opened this issue May 22, 2023 · 0 comments · Fixed by #1281
Labels
bug Something isn't working

Comments

@krille-chan
Copy link

Describe the bug:

If you set shrinkWrap to true it breaks

  • list items.

    HTML to reproduce the issue:

    <ul>
      <li>First line</li>
      <li>Second line</li>
    </ul>

    Html widget configuration:

    Html(
    //...
      shrinkWrap: true,
    );

    Expected behavior:

    It works fine when shrinkWrap is false.

    Screenshots:

    Bildschirmfoto 2023-05-22 um 08 30 48

    Device details and Flutter/Dart/flutter_html versions:

    flutter_html: ^3.0.0-beta.1

    A picture of a cute animal (not mandatory but encouraged)

    🐰

  • @krille-chan krille-chan added the bug Something isn't working label May 22, 2023
    nico-famedly added a commit to famedly/flutter_html that referenced this issue May 22, 2023
    Each list item is expected to start in a new line (similar to a block
    element). Otherwise list items will overlap with each other in a list
    when `shrinkWrap` is enabled.
    
    fixes Sub6Resources#1280
    @Sub6Resources Sub6Resources moved this to Done in flutter_html Dec 18, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    bug Something isn't working
    Projects
    Status: Done
    Development

    Successfully merging a pull request may close this issue.

    1 participant