FromDIP the left tree view in kicad frame

This commit is contained in:
Marek Roszko 2024-01-17 21:56:24 -05:00
parent 8a3a7b2a10
commit 7709de3667
1 changed files with 4 additions and 2 deletions

View File

@ -129,8 +129,10 @@ KICAD_MANAGER_FRAME::KICAD_MANAGER_FRAME( wxWindow* parent, const wxString& titl
m_mainToolBar( nullptr ), m_mainToolBar( nullptr ),
m_lastToolbarIconSize( 0 ) m_lastToolbarIconSize( 0 )
{ {
const int defaultLeftWinWidth = FromDIP( 250 );
m_active_project = false; m_active_project = false;
m_leftWinWidth = 250; // Default value m_leftWinWidth = defaultLeftWinWidth; // Default value
m_aboutTitle = "KiCad"; m_aboutTitle = "KiCad";
// JPC: A very ugly hack to fix an issue on Linux: if the wxbase315u_xml_gcc_custom.so is // JPC: A very ugly hack to fix an issue on Linux: if the wxbase315u_xml_gcc_custom.so is
@ -223,7 +225,7 @@ KICAD_MANAGER_FRAME::KICAD_MANAGER_FRAME( wxWindow* parent, const wxString& titl
m_auimgr.Update(); m_auimgr.Update();
// Now the actual m_leftWin size is set, give it a reasonable min width // Now the actual m_leftWin size is set, give it a reasonable min width
m_auimgr.GetPane( m_leftWin ).MinSize( 250, -1 ); m_auimgr.GetPane( m_leftWin ).MinSize( defaultLeftWinWidth, -1 );
wxSizer* mainSizer = GetSizer(); wxSizer* mainSizer = GetSizer();