if (eq(layout, "hbox" )) doHVBox(true, false);
else if(eq(layout, "vbox" )) doHVBox(true, true);
else if(eq(layout, "table")) doTable(true);
- } else if(isType("hrule"))
- doHVBox(true, false);
- else if(isType("vrule"))
- doHVBox(true, true);
+ }
}
// Convention: the "A" cooridinate refers to the major axis of the
int total = 0;
for(j=0; j<cell->rspan; j++)
total += rowSizes[cell->row + j];
- int extra = total - cell->h;
+ int extra = cell->h - total;
if(extra > 0) {
for(j=0; j<cell->rspan; j++) {
int chunk = extra / (cell->rspan - j);
int total = 0;
for(j=0; j<cell->cspan; j++)
total += colSizes[cell->col + j];
- int extra = total - cell->w;
+ int extra = cell->w - total;
if(extra > 0) {
for(j=0; j<cell->cspan; j++) {
int chunk = extra / (cell->cspan - j);