+void Widget::autosize()
+{
+ geom.w = 0;
+ geom.h = 0;
+ const Style::PartSeq &parts = style->get_parts();
+ for(Style::PartSeq::const_iterator i=parts.begin(); i!=parts.end(); ++i)
+ if(i->get_name().empty())
+ {
+ geom.w = max(geom.w, i->get_geometry().w);
+ geom.h = max(geom.h, i->get_geometry().h);
+ }
+}
+