]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dropdown.cpp
Make font size a property of Style
[libs/gltk.git] / source / dropdown.cpp
index 87ea5eece9cc7fcbe8341284a289fce8612ed434..d1a7bd7e1433490e364a8d7cf2ec356c809ce0a7 100644 (file)
@@ -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<unsigned>((font->get_ascent()-font->get_descent())*font_size);
                geom.h = max(geom.h, line_height+margin.top+margin.bottom);
        }