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));
}
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));
}
ageom.w = max(ageom.w, list.get_geometry().w);
}
else if(part.get_name()=="text")
ageom.w = max(ageom.w, list.get_geometry().w);
}
else if(part.get_name()=="text")
unsigned line_height = static_cast<unsigned>((font.get_ascent()-font.get_descent())*font_size);
ageom.h = max(ageom.h, line_height+margin.top+margin.bottom);
}
unsigned line_height = static_cast<unsigned>((font.get_ascent()-font.get_descent())*font_size);
ageom.h = max(ageom.h, line_height+margin.top+margin.bottom);
}