diff options
-rw-r--r-- | render/layout.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/render/layout.c b/render/layout.c index ffea31d17..ab2dd6cc1 100644 --- a/render/layout.c +++ b/render/layout.c @@ -5068,6 +5068,7 @@ static void layout_get_box_bbox(struct box *box, int *desc_x0, int *desc_y0, css_computed_font_size(box->style, &font_size, &font_unit); text_height = nscss_len2px(font_size, font_unit, box->style); + text_height = FIXTOINT(text_height * 3 / 4); *desc_y0 = (*desc_y0 < -text_height) ? *desc_y0 : -text_height; } } |