Skip to content

[BUG] Nesting divs increases the font size #1179

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
bananowysong opened this issue Oct 27, 2022 · 4 comments
Closed

[BUG] Nesting divs increases the font size #1179

bananowysong opened this issue Oct 27, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@bananowysong
Copy link

bananowysong commented Oct 27, 2022

Describe the bug:
When nesting elements like <div> <p> and so on, it seems that the font sizes increases the more nested the text is as if multiplied.

flutter_html version
flutter_html: ^3.0.0-alpha.6

HTML to reproduce the issue:

tseter without p
<p>tester tester in p</p>
<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>
<div>tester in div</div>
<div>
<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul
</div>
<div>
<div>
<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul
</div>
</div>
<div>
<div>
<div>
<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul
</div>
</div>
</div>

Html widget configuration:
Default Html widget, no additional styling.

Expected behavior:
The font size should not increase by itself when HTML tags are nested.

Screenshots:
image

Device details and Flutter/Dart/flutter_html versions:
Samsung a52s 5g. Android 12. One ui 4.1

On android emulator (pixel 2, ios simulators and iphone xs max it looks all fine)

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

@bananowysong bananowysong added the bug Something isn't working label Oct 27, 2022
@erickok
Copy link
Contributor

erickok commented Oct 28, 2022

Which flutter_html version are you using? This should have been fixed in #1173

@bananowysong
Copy link
Author

Hello, I have been using flutter_html: ^3.0.0-alpha.6 from pub, but like you said, using the latest version from the repo fixes the issue.

@erickok
Copy link
Contributor

erickok commented Oct 28, 2022

No worries and thanks for the 🐰

@Sub6Resources
Copy link
Owner

Sub6Resources commented Nov 2, 2022

Closing since this is fixed in the latest repository version. Until the version following 3.0.0-alpha.6 is released, you can use 3.0.0-alpha.5 if you are having scaling issues and don't want to use the GitHub repository version.

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
None yet
Development

No branches or pull requests

3 participants