Skip to content

Commit df0ea48

Browse files
committed
Fix collapsed border
1 parent d6382c2 commit df0ea48

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
712 Bytes
Loading

packages/core/lib/src/widgets/html_table.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ class _TableRenderLayouter {
415415
final layoutSize = layouter(child, step1.widthConstraints);
416416
childSizes[i] = layoutSize;
417417
maxColumnWidths.setMaxColumnWidths(tro, data, layoutSize.width);
418-
logger.fine('Got child#$i $layoutSize@${step1.widthConstraints}');
418+
logger.fine('[3] Got child#$i $layoutSize@${step1.widthConstraints}');
419419
shouldLoop = true;
420420
}
421421

@@ -525,7 +525,7 @@ class _TableRenderLayouter {
525525
// layout with tight constraints to get the expected width
526526
final cc1 = BoxConstraints.tightFor(width: childWidth);
527527
childSize = layouter(child, cc1);
528-
logger.fine('Got child#$i $childSize@$cc1');
528+
logger.fine('[4] Got child#$i $childSize@$cc1');
529529
childSizes[i] = childSize;
530530
}
531531

@@ -687,6 +687,10 @@ class _TableDataStep1 {
687687

688688
static double _calculateRemainingWidth(
689689
_TableRenderObject tro, int columnCount, double width) {
690+
if (width.isZero) {
691+
return 0;
692+
}
693+
690694
final columnGapsSum = (columnCount + 1) * tro.columnGap;
691695
final gapsAndPaddings = tro.paddingLeft + columnGapsSum + tro.paddingRight;
692696
return width - gapsAndPaddings;

0 commit comments

Comments
 (0)