#include <msp/core/maputils.h>
#include <msp/core/raii.h>
#include <msp/gltk/part.h>
+#include <msp/gltk/root.h>
#include <msp/gltk/stack.h>
#include <msp/strings/format.h>
#include "libr2c2/aicontrol.h"
{
pnl_expander->set_visible(!pnl_expander->is_visible());
btn_expand->set_style(pnl_expander->is_visible() ? "arrow_up" : "arrow_down");
- GLtk::Geometry ageom = geom;
- ageom.h = 0;
- layout->autosize(ageom);
- ageom.y = geom.y+geom.h-ageom.h;
- set_geometry(ageom);
+ signal_autosize_changed.emit();
+ find_ancestor<GLtk::Root>()->get_layout()->update();
}
void TrainDialog::toggle_panel(bool show, GLtk::Panel *panel)