+ unsigned max_w = 0;
+ const ListData &data = list.get_data();
+ for(unsigned i=0; i<data.size(); ++i)
+ {
+ unsigned w = static_cast<unsigned>(font.get_string_width(data.get_string(i))*font_size);
+ max_w = max(max_w, w);
+ }
+ ageom.w = max(ageom.w, max_w+margin.left+margin.right);
+
+ 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);
+ }