summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-08-29 23:15:54 +0000
committerJames Bursa <james@netsurf-browser.org>2003-08-29 23:15:54 +0000
commit9a6d854181a0b951322875096de57df6b4cc4be0 (patch)
treed1211b39a17c982d037658b7c38f42cfb2c1dc88
parent9c4d5cc75f5501f62ecd0eb2d58f790a851b79aa (diff)
downloadnetsurf-9a6d854181a0b951322875096de57df6b4cc4be0.tar.gz
netsurf-9a6d854181a0b951322875096de57df6b4cc4be0.tar.bz2
[project @ 2003-08-29 23:15:54 by bursa]
Fix row height problem. svn path=/import/netsurf/; revision=261
-rw-r--r--render/layout.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/render/layout.c b/render/layout.c
index 6b4368616..7a586c0aa 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -712,10 +712,17 @@ void layout_table(struct box * table, unsigned long width, struct box * cont,
row_span[i]--;
else
row_span_cell[i] = 0;
- /* row height is greatest excess of a cell which ends in this row */
- for (i = 0; i != columns; i++)
- if (row_span[i] == 0 && row_height < excess_y[i])
- row_height = excess_y[i];
+ if (row->next || row_group->next) {
+ /* row height is greatest excess of a cell which ends in this row */
+ for (i = 0; i != columns; i++)
+ if (row_span[i] == 0 && row_height < excess_y[i])
+ row_height = excess_y[i];
+ } else {
+ /* except in the last row */
+ for (i = 0; i != columns; i++)
+ if (row_height < excess_y[i])
+ row_height = excess_y[i];
+ }
for (i = 0; i != columns; i++) {
if (row_height < excess_y[i])
excess_y[i] -= row_height;