-
-
Notifications
You must be signed in to change notification settings - Fork 907
[BUG] Top margin gets set to '[text]' margin #1155
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
Comments
This is certainly odd. Can you give us an example of HTML that can reproduce this issue? |
Structure of the html is:
I can image that the style setup is also important. Unfortunately not entirely straightforward how I create it: In this setup I already included my workaround with the
|
Thanks, This will take me a bit to work through but I'll take a look. |
My workaround fails when there is no empty text element between tags.
leads to this output:
|
I think I have found the problem. Margin was added both to bottom of previous block and top of next block. |
@arjanmels Thanks for catching that! |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug:
The '[text]' elements get a bottom of margin of 32 in my case.
In the _collapseMargins routine this gets collapsed into the next elements margin.
My solution/workaround add a Style to the style map with key '[text]' setting sthe margins to 0.
HTML to reproduce the issue:
Html
widget configuration:Expected behavior:
No margin on [text] element by default
Screenshots:
N/A
Device details and Flutter/Dart/
flutter_html
versions:Version: 3.0.0-alpha6
Stacktrace/Logcat
N/A
Additional info:
N/A
The text was updated successfully, but these errors were encountered: