]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dropdown.cpp
Fix some problems with List and Dropdown
[libs/gltk.git] / source / dropdown.cpp
index 41e42fa72fa4b45b399ede99167d3a45d0bbe869..6ec88fe10e30ad8be3e0dc89279f48b448705b6f 100644 (file)
@@ -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();
 }