mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
[project @ 2005-08-06 22:29:30 by bursa]
Use given width as initial min/max width of fixed-width table columns. This improves the layout of certain tables with colspans. svn path=/import/netsurf/; revision=1841
This commit is contained in:
parent
3b4baa8008
commit
362a6000b4
@ -2159,8 +2159,13 @@ void layout_minmax_table(struct box *table)
|
||||
if (table->max_width != UNKNOWN_MAX_WIDTH)
|
||||
return;
|
||||
|
||||
for (i = 0; i != table->columns; i++)
|
||||
/* start with 0 except for fixed-width columns */
|
||||
for (i = 0; i != table->columns; i++) {
|
||||
if (col[i].type == COLUMN_WIDTH_FIXED)
|
||||
col[i].min = col[i].max = col[i].width;
|
||||
else
|
||||
col[i].min = col[i].max = 0;
|
||||
}
|
||||
|
||||
/* border-spacing is used in the separated borders model */
|
||||
if (table->style->border_collapse == CSS_BORDER_COLLAPSE_SEPARATE)
|
||||
|
Loading…
Reference in New Issue
Block a user