-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
Embedded table has weird padding #310
Comments
Hmm, I was able to reproduce the bug with the following code in a new flutter project. import 'package:flutter/material.dart';
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: HtmlWidget(
'''<table>
<tbody>
<tr>
<td>
<table>
<tbody>
<tr>
<td>a</td>
</tr>
<tr>
<td>b</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>''',
),
),
);
}
} |
Ah, you meant the table a stretched out like this? Yes, this happens when the TABLE is the only thing in the HTML and the For the mean time, there are two simple workarounds: If you have some other text or anything else in the HTML, it will be better: Or you can put it inside a |
Version |
Expected Result
a
bbbbbbbbbb
Actual Result
a
bbbbbbbbbb
Apparently, this bug occurs in version 0.5.0+3 but not 0.4.3. Also, I found that the padding becomes larger as the number of
b
s increase. For instance, a singleb
would not cause this bug.The text was updated successfully, but these errors were encountered: