temporary fix menu panel sizing

This commit is contained in:
MihailRis 2025-12-13 17:13:07 +03:00
parent a07bf60a6f
commit c11b2d0d70

View file

@ -270,6 +270,7 @@ void GUI::draw(const DrawContext& pctx, const Assets& assets) {
auto& page = menu->getCurrent();
if (page.panel) {
menu->setSize(page.panel->getSize());
page.panel->refresh();
if (auto panel = std::dynamic_pointer_cast<gui::Panel>(page.panel)) {
panel->cropToContent();
}