X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fdropdown.cpp;h=ce0ba71f642c45ca7f672e4bf8e80f78d8fb60ed;hp=ddf5c9268500479655796caecf9bad0a1ec71e20;hb=c8291177b545ec81930603a5915234a60296db51;hpb=319cde3c06181ba1c3619567525002926d8b4889 diff --git a/source/dropdown.cpp b/source/dropdown.cpp index ddf5c92..ce0ba71 100644 --- a/source/dropdown.cpp +++ b/source/dropdown.cpp @@ -28,6 +28,7 @@ void Dropdown::init() dropped = false; add(list); + list.set_view_all(); list.signal_item_selected.connect(sigc::mem_fun(this, &Dropdown::list_item_selected)); list.signal_autosize_changed.connect(sigc::mem_fun(this, &Dropdown::list_autosize_changed)); } @@ -38,7 +39,7 @@ void Dropdown::autosize() return; Widget::autosize(); - list.autosize_all(); + list.autosize(); geom.w = max(geom.w, list.get_geometry().w); if(const Part *text_part = style->get_part("text")) @@ -123,7 +124,7 @@ void Dropdown::list_autosize_changed() void Dropdown::resize_list() { - list.autosize_all(); + list.autosize(); Geometry lgeom = list.get_geometry(); lgeom.x = 0; lgeom.y = -lgeom.h;