ModEdit: fix incorrect size of the toolbar grid size combo box
This commit is contained in:
parent
9cfb97d8b4
commit
0cb7c3dc7d
|
@ -38,12 +38,6 @@
|
|||
#include <pcbnew_id.h>
|
||||
#include <hotkeys.h>
|
||||
|
||||
#ifdef __UNIX__
|
||||
#define LISTBOX_WIDTH 140
|
||||
#else
|
||||
#define LISTBOX_WIDTH 120
|
||||
#endif
|
||||
|
||||
|
||||
void FOOTPRINT_EDIT_FRAME::ReCreateHToolbar()
|
||||
{
|
||||
|
@ -266,9 +260,10 @@ void FOOTPRINT_EDIT_FRAME::ReCreateAuxiliaryToolbar()
|
|||
m_gridSelectBox = new wxComboBox( m_auxiliaryToolBar,
|
||||
ID_ON_GRID_SELECT,
|
||||
wxEmptyString,
|
||||
wxPoint( -1, -1 ),
|
||||
wxSize( LISTBOX_WIDTH, -1 ),
|
||||
wxDefaultPosition, wxDefaultSize,
|
||||
0, NULL, wxCB_READONLY );
|
||||
// Update tool bar to reflect setting.
|
||||
updateGridSelectBox();
|
||||
m_auxiliaryToolBar->AddControl( m_gridSelectBox );
|
||||
|
||||
// Zoom selection choice box.
|
||||
|
@ -276,14 +271,10 @@ void FOOTPRINT_EDIT_FRAME::ReCreateAuxiliaryToolbar()
|
|||
m_zoomSelectBox = new wxComboBox( m_auxiliaryToolBar,
|
||||
ID_ON_ZOOM_SELECT,
|
||||
wxEmptyString,
|
||||
wxPoint( -1, -1 ),
|
||||
wxSize( LISTBOX_WIDTH, -1 ),
|
||||
wxDefaultPosition, wxDefaultSize,
|
||||
0, NULL, wxCB_READONLY );
|
||||
m_auxiliaryToolBar->AddControl( m_zoomSelectBox );
|
||||
|
||||
// Update tool bar to reflect setting.
|
||||
updateGridSelectBox();
|
||||
updateZoomSelectBox();
|
||||
m_auxiliaryToolBar->AddControl( m_zoomSelectBox );
|
||||
|
||||
// after adding the buttons to the toolbar, must call Realize() to reflect the changes
|
||||
m_auxiliaryToolBar->Realize();
|
||||
|
|
Loading…
Reference in New Issue