Commit c85d64ae authored by Mark Roszko's avatar Mark Roszko

Fix hotkey editor on Windows not using max height of the dialog for the list control.

Set wxNO_BORDER for the tab page.
parent 606f2e91
...@@ -216,7 +216,7 @@ HOTKEY_SECTION_PAGE::HOTKEY_SECTION_PAGE( HOTKEYS_EDITOR_DIALOG* aDialog, ...@@ -216,7 +216,7 @@ HOTKEY_SECTION_PAGE::HOTKEY_SECTION_PAGE( HOTKEYS_EDITOR_DIALOG* aDialog,
const wxString& aTitle, const wxString& aTitle,
EDA_HOTKEY_CONFIG* aSection ) : EDA_HOTKEY_CONFIG* aSection ) :
wxPanel( aParent, -1, wxDefaultPosition, wxDefaultSize, wxPanel( aParent, -1, wxDefaultPosition, wxDefaultSize,
wxTAB_TRAVERSAL | wxBORDER_SUNKEN ), wxTAB_TRAVERSAL | wxNO_BORDER ),
m_hotkeySection( aSection ), m_hotkeySection( aSection ),
m_dialog( aDialog ) m_dialog( aDialog )
{ {
...@@ -224,7 +224,9 @@ HOTKEY_SECTION_PAGE::HOTKEY_SECTION_PAGE( HOTKEYS_EDITOR_DIALOG* aDialog, ...@@ -224,7 +224,9 @@ HOTKEY_SECTION_PAGE::HOTKEY_SECTION_PAGE( HOTKEYS_EDITOR_DIALOG* aDialog,
wxBoxSizer* bMainSizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer* bMainSizer = new wxBoxSizer( wxVERTICAL );
this->SetSizer( bMainSizer ); SetSizer( bMainSizer );
Layout();
bMainSizer->Fit( this );
m_hotkeyList = new HOTKEY_LIST_CTRL( this, aSection ); m_hotkeyList = new HOTKEY_LIST_CTRL( this, aSection );
bMainSizer->Add( m_hotkeyList, 1, wxALL|wxEXPAND, 5 ); bMainSizer->Add( m_hotkeyList, 1, wxALL|wxEXPAND, 5 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment