else if(btn==1)
{
const GL::Font *const font=style->get_font();
- const unsigned row_height=static_cast<unsigned>(font->get_default_size());
+ const unsigned row_height=static_cast<unsigned>((font->get_ascent()-font->get_descent())*font->get_default_size());
if(items_part)
y+=items_part->get_margin().top;
const GL::Font *const font=style->get_font();
const float font_size=font->get_default_size();
const GL::Color &color=style->get_font_color();
- const unsigned row_height=static_cast<unsigned>(font_size);
+ const unsigned row_height=static_cast<unsigned>((font->get_ascent()-font->get_descent())*font_size);
const Sides &margin=part.get_margin();
Geometry pgeom=geom;
{
const GL::Font *const font=style->get_font();
const float font_size=font->get_default_size();
- const unsigned row_height=static_cast<unsigned>(font_size);
+ const unsigned row_height=static_cast<unsigned>((font->get_ascent()-font->get_descent())*font_size);
const Sides &margin=part.get_margin();
Geometry pgeom=geom;