X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdropdown.cpp;h=6ec88fe10e30ad8be3e0dc89279f48b448705b6f;hb=43a75e4e9be56c58be5e224f19016bb14b56a7ef;hp=41e42fa72fa4b45b399ede99167d3a45d0bbe869;hpb=fdc7fecc65f5f517d66abe3546a949a46836c4a6;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(); }