Skip to content

Commit

Permalink
GfxPack: Workaround for invisible detail panel
Browse files Browse the repository at this point in the history
Fixes #1307
There is probably a better way to calculate the maximum width. But this suffices for now as a workaround
  • Loading branch information
Exzap committed Aug 23, 2024
1 parent 9e53c1c commit 573c98b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/GraphicPacksWindow2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,10 @@ void GraphicPacksWindow2::OnTreeSelectionChanged(wxTreeEvent& event)

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_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_right_panel->FitInside();
Expand Down

0 comments on commit 573c98b

Please sign in to comment.