Skip to content

Commit b878184

Browse files
committed
Revert example changes from "Support exactly-specified widths and height from css"
1 parent b6c045e commit b878184

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

example/lib/main.dart

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,17 @@ const htmlData = r"""
6161
<p>
6262
<q>Famous quote...</q>
6363
</p>
64-
<table style="height: 400">
64+
<table>
65+
<colgroup>
66+
<col width="50%" />
67+
<col span="2" width="25%" />
68+
</colgroup>
6569
<thead>
6670
<tr><th>One</th><th>Two</th><th>Three</th></tr>
6771
</thead>
6872
<tbody>
6973
<tr>
70-
<td rowspan='2'>Rowspan</td><td>Data</td><td>Data</td>
74+
<td rowspan='2'>Rowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan\nRowspan</td><td>Data</td><td>Data</td>
7175
</tr>
7276
<tr>
7377
<td colspan="2"><img alt='Google' src='https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png' /></td>
@@ -264,13 +268,13 @@ class _MyHomePageState extends State<MyHomePage> {
264268
'h5': Style(maxLines: 2, textOverflow: TextOverflow.ellipsis),
265269
},
266270
customRender: {
267-
// "table": (context, child) {
268-
// return SingleChildScrollView(
269-
// scrollDirection: Axis.horizontal,
270-
// child:
271-
// (context.tree as TableLayoutElement).toWidget(context),
272-
// );
273-
// },
271+
"table": (context, child) {
272+
return SingleChildScrollView(
273+
scrollDirection: Axis.horizontal,
274+
child:
275+
(context.tree as TableLayoutElement).toWidget(context),
276+
);
277+
},
274278
"bird": (RenderContext context, Widget child) {
275279
return TextSpan(text: "🐦");
276280
},

0 commit comments

Comments
 (0)