flutter_html icon indicating copy to clipboard operation
flutter_html copied to clipboard

[BUG] line-height display doesn't follow the px unit but shows in multiples.

Open hakama99 opened this issue 2 years ago • 4 comments

In version ^3.0.0-beta.2, when using the line-height: 20px property, the displayed height is not 20px. Instead, it appears to be 20 times the original height.

`

          Html(
            data: "<h2 style=' line-height:1px; '>sample <br> sample</h2>",
          )


          Html(
            data: "<h2 style=' line-height:3px; '>sample <br> sample</h2>",
          )

`

3px sample1 1px sample2

hakama99 avatar Sep 02 '23 17:09 hakama99

In version ^3.0.0-alpha.6 Android Html( data: "<p style=\"line-height: 2;\">test<br >test2</p>",)

1696761189982

MrUncleX avatar Oct 08 '23 10:10 MrUncleX

Same here, html will display so much line spaces after upgrading to 3.0.0-beta.2, while 3.0.0-alpha.5 is fine.

KevinJ1008 avatar Dec 04 '23 09:12 KevinJ1008

Hi, I have meet the same bug.

snailflying avatar Dec 05 '23 04:12 snailflying