Commit f0a436d5 authored by Andrew Hodgkinson's avatar Andrew Hodgkinson
Browse files

Bug in reformat_check_height were TEXTAREA element heights were highly overestimated fixed.

parent 91cb9e09
......@@ -1678,12 +1678,18 @@ static _kernel_oserror * reformat_check_height(int toplevel, browser_data * b, r
{
/* Text areas, based on the number of rows */
int r;
BBox box;
int h;
int r;
h = fm_find_token_font(b, tp);
e = fm_font_box(h, &box);
if (e) return e;
r = tp->rows;
if (r < 2) r = 2;
top = (top + bot) * r + 12 - bot;
bot += 16;
top += (box.ymax - box.ymin) * r + 8;
bot += 8;
}
else if (tp->tagno == TAG_SELECT)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment