GfxPack: Workaround for invisible detail panel

Fixes #1307
There is probably a better way to calculate the maximum width. But this suffices for now as a workaround
This commit is contained in:
Exzap 2024-08-23 19:26:33 +02:00
parent 9e53c1ce27
commit 573c98b2f8

View File

@ -458,10 +458,10 @@ void GraphicPacksWindow2::OnTreeSelectionChanged(wxTreeEvent& event)
m_shown_graphic_pack = gp; m_shown_graphic_pack = gp;
m_graphic_pack_name->Wrap(m_graphic_pack_name->GetParent()->GetClientSize().GetWidth() - 10); m_graphic_pack_name->Wrap(m_graphic_pack_name->GetParent()->GetClientSize().GetWidth() - 20);
m_graphic_pack_name->GetGrandParent()->Layout(); m_graphic_pack_name->GetGrandParent()->Layout();
m_graphic_pack_description->Wrap(m_graphic_pack_description->GetParent()->GetClientSize().GetWidth() - 10); m_graphic_pack_description->Wrap(m_graphic_pack_description->GetParent()->GetClientSize().GetWidth() - 20);
m_graphic_pack_description->GetGrandParent()->Layout(); m_graphic_pack_description->GetGrandParent()->Layout();
m_right_panel->FitInside(); m_right_panel->FitInside();