Skip to content

Commit 573c98b

Browse files
committed
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
1 parent 9e53c1c commit 573c98b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/GraphicPacksWindow2.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,10 @@ void GraphicPacksWindow2::OnTreeSelectionChanged(wxTreeEvent& event)
458458

459459
m_shown_graphic_pack = gp;
460460

461-
m_graphic_pack_name->Wrap(m_graphic_pack_name->GetParent()->GetClientSize().GetWidth() - 10);
461+
m_graphic_pack_name->Wrap(m_graphic_pack_name->GetParent()->GetClientSize().GetWidth() - 20);
462462
m_graphic_pack_name->GetGrandParent()->Layout();
463463

464-
m_graphic_pack_description->Wrap(m_graphic_pack_description->GetParent()->GetClientSize().GetWidth() - 10);
464+
m_graphic_pack_description->Wrap(m_graphic_pack_description->GetParent()->GetClientSize().GetWidth() - 20);
465465
m_graphic_pack_description->GetGrandParent()->Layout();
466466

467467
m_right_panel->FitInside();

0 commit comments

Comments
 (0)