Skip to content

Ensure non-negative insets are used for all margins and paddings #924

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

Merged
merged 2 commits into from
Dec 8, 2021

Conversation

erickok
Copy link
Contributor

@erickok erickok commented Dec 7, 2021

Fix #919 by ensuring non-negative insets are used for all margins and paddings applied in the library.

While we (still) do not support negative margins/padding (because Flutter doesn't) this at least ensures it doesn't crash upon encountering negative inset values.

…l margins and paddings applied in the library
…ve-paddings

# Conflicts:
#	lib/html_parser.dart
#	lib/src/layout_element.dart
@erickok erickok merged commit aa54095 into Sub6Resources:master Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Error when trying to render an html with negative padding
2 participants