diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/layout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c index 8c2a4de0e..23b6912bb 100644 --- a/render/layout.c +++ b/render/layout.c @@ -2678,7 +2678,9 @@ struct box *layout_minmax_line(struct box *first, &fixed, &frac); calculate_mbp_width(b->style, RIGHT, true, true, true, &fixed, &frac); - width += fixed; + + if (0 < width + fixed) + width += fixed; } else { /* form control with no object */ if (width == AUTO) |