X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdropdown.cpp;h=6ec88fe10e30ad8be3e0dc89279f48b448705b6f;hb=f3d8d9510ac81c23f67025983aa7171ec5adcda9;hp=41e42fa72fa4b45b399ede99167d3a45d0bbe869;hpb=eb6eee5fabf05abca4a0434c2a8f8f62c900afec;p=libs%2Fgltk.git diff --git a/source/dropdown.cpp b/source/dropdown.cpp index 41e42fa..6ec88fe 100644 --- a/source/dropdown.cpp +++ b/source/dropdown.cpp @@ -26,6 +26,7 @@ void Dropdown::autosize() return; Widget::autosize(); + list.autosize_all(); geom.w = max(geom.w, list.get_geometry().w); if(const Part *text_part = style->get_part("text")) @@ -173,6 +174,7 @@ void Dropdown::list_item_selected(unsigned index, const std::string &item) } signal_item_selected.emit(index, item); + rebuild(); }