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

Set wxNO_BORDER for the tab page.
This commit is contained in:
Mark Roszko 2014-10-16 23:16:46 -04:00
parent 606f2e91f8
commit c85d64aee6
1 changed files with 4 additions and 2 deletions

View File

@ -216,7 +216,7 @@ HOTKEY_SECTION_PAGE::HOTKEY_SECTION_PAGE( HOTKEYS_EDITOR_DIALOG* aDialog,
const wxString& aTitle,
EDA_HOTKEY_CONFIG* aSection ) :
wxPanel( aParent, -1, wxDefaultPosition, wxDefaultSize,
wxTAB_TRAVERSAL | wxBORDER_SUNKEN ),
wxTAB_TRAVERSAL | wxNO_BORDER ),
m_hotkeySection( aSection ),
m_dialog( aDialog )
{
@ -224,7 +224,9 @@ HOTKEY_SECTION_PAGE::HOTKEY_SECTION_PAGE( HOTKEYS_EDITOR_DIALOG* aDialog,
wxBoxSizer* bMainSizer = new wxBoxSizer( wxVERTICAL );
this->SetSizer( bMainSizer );
SetSizer( bMainSizer );
Layout();
bMainSizer->Fit( this );
m_hotkeyList = new HOTKEY_LIST_CTRL( this, aSection );
bMainSizer->Add( m_hotkeyList, 1, wxALL|wxEXPAND, 5 );