Fix layouting of texture preview in atlas

Commit fe192fe58f added one extra level,
so we have to layout the parent of the parent now to actually layout the
sidebar.

Fixes: #8388
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-09-29 09:15:25 +02:00
parent 1e3f849816
commit d22d8776e6
@@ -168,7 +168,7 @@ public:
m_Sizer->Add(label, wxSizerFlags().Expand());
// We have to force the sidebar to layout manually
GetParent()->Layout();
GetParent()->GetParent()->Layout();
if (preview.loaded && m_Timer.IsRunning())
{