+void TrainDialog::autosize_special(const GLtk::Part &part, GLtk::Geometry &ageom) const
+{
+ GLtk::Dialog::autosize_special(part, ageom);
+
+ if(part.get_name()=="children")
+ {
+ GLtk::Geometry egeom;
+ pnl_expander->autosize(egeom);
+ const GLtk::Sides &margin = layout->get_margin();
+ ageom.w = max(ageom.w, margin.left+margin.right+egeom.w);
+ }
+}
+