if(!multiline || !text_part)
return;
- float font_size = style->get_font_size();
- unsigned line_spacing = static_cast<unsigned>(font_size*6/5);
-
- const Sides &margin = text_part->get_margin();
- visible_rows = max((geom.h-margin.top-margin.bottom)/line_spacing, 1U);
+ visible_rows = text.get_visible_lines(*text_part, geom, 0);
unsigned row, col;
text.offset_to_coords(edit_pos, row, col);