mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 07:21:51 +00:00
temporary fix menu panel sizing
This commit is contained in:
parent
a07bf60a6f
commit
c11b2d0d70
1 changed files with 1 additions and 0 deletions
|
|
@ -270,6 +270,7 @@ void GUI::draw(const DrawContext& pctx, const Assets& assets) {
|
||||||
auto& page = menu->getCurrent();
|
auto& page = menu->getCurrent();
|
||||||
if (page.panel) {
|
if (page.panel) {
|
||||||
menu->setSize(page.panel->getSize());
|
menu->setSize(page.panel->getSize());
|
||||||
|
page.panel->refresh();
|
||||||
if (auto panel = std::dynamic_pointer_cast<gui::Panel>(page.panel)) {
|
if (auto panel = std::dynamic_pointer_cast<gui::Panel>(page.panel)) {
|
||||||
panel->cropToContent();
|
panel->cropToContent();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue