X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdropdown.cpp;h=d1a7bd7e1433490e364a8d7cf2ec356c809ce0a7;hb=11d1b67a9180a0e468b56e355fbe0c88d104ef72;hp=87ea5eece9cc7fcbe8341284a289fce8612ed434;hpb=b8bfaf14b5c68428cf34c0e8514e03cd0614ee5b;p=libs%2Fgltk.git diff --git a/source/dropdown.cpp b/source/dropdown.cpp index 87ea5ee..d1a7bd7 100644 --- a/source/dropdown.cpp +++ b/source/dropdown.cpp @@ -32,7 +32,7 @@ void Dropdown::autosize() { const Sides &margin = text_part->get_margin(); const GL::Font *font = style->get_font(); - float font_size = font->get_default_size(); + float font_size = style->get_font_size(); unsigned line_height = static_cast((font->get_ascent()-font->get_descent())*font_size); geom.h = max(geom.h, line_height+margin.top+margin.bottom); }