mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 14:59:47 +03:00
[project @ 2005-07-20 22:08:56 by bursa]
Fix min / max bug with negative margins (treat as 0 for now). svn path=/import/netsurf/; revision=1810
This commit is contained in:
parent
3f36449c91
commit
e24bed7715
@ -1353,13 +1353,15 @@ struct box *layout_minmax_line(struct box *first,
|
||||
if (!b->inline_end)
|
||||
calculate_mbp_width(b->style, RIGHT,
|
||||
&fixed, &frac);
|
||||
max += fixed;
|
||||
if (0 < fixed)
|
||||
max += fixed;
|
||||
/* \todo update min width, consider fractional extra */
|
||||
} else if (b->type == BOX_INLINE_END) {
|
||||
fixed = frac = 0;
|
||||
calculate_mbp_width(b->inline_end->style, RIGHT,
|
||||
&fixed, &frac);
|
||||
max += fixed;
|
||||
if (0 < fixed)
|
||||
max += fixed;
|
||||
if (b->next && b->space) {
|
||||
nsfont_width(b->style, " ", 1, &width);
|
||||
max += width;
|
||||
|
Loading…
Reference in New Issue
Block a user