They probably still don't work perfectly, but there's bigger changes
coming when I have time.
return;
Widget::autosize();
+ list.autosize_all();
geom.w = max(geom.w, list.get_geometry().w);
if(const Part *text_part = style->get_part("text"))
}
signal_item_selected.emit(index, item);
+ rebuild();
}
{
sel_index = i;
signal_item_selected.emit(sel_index, items[sel_index]);
+ rebuild();
}
else
throw out_of_range("List::set_selected_index");
GL::MeshBuilder bld(*cache.mesh);
bld.color(style->get_font_color());
- bld.matrix() *= GL::Matrix::translation(pgeom.x, pgeom.y+geom.h-pgeom.h, 0);
+ bld.matrix() *= GL::Matrix::translation(margin.left, geom.h-pgeom.h-font.get_descent()*style->get_font_size(), 0);
for(unsigned i=0; (i<n_visible && first+i<items.size()); ++i)
{