Commit 1d683046 authored by dickelbeck's avatar dickelbeck
Browse files

layer combobox width change

parent 100c2ec5
Loading
Loading
Loading
Loading
+34 −23
Original line number Original line Diff line number Diff line
@@ -618,8 +618,19 @@ WinEDAChoiceBox* WinEDA_PcbFrame::ReCreateLayerBox( WinEDA_Toolbar* parent )
    {
    {
        if( parent == NULL )
        if( parent == NULL )
            return NULL;
            return NULL;
        
        m_SelLayerBox = new WinEDAChoiceBox( parent, ID_TOOLBARH_PCB_SELECT_LAYER,
        m_SelLayerBox = new WinEDAChoiceBox( parent, ID_TOOLBARH_PCB_SELECT_LAYER,
                                            wxPoint( -1, -1 ), wxSize( -1, -1 ) );
                                            
                                wxPoint( -1, -1 ),
#if defined(__UNIX__)                  
                                // Width enough for the longest string: "Component (Page Down)"
                                // Maybe that string is too long?
                                wxSize( 230, -1 )     
#else
                                wxSize( LISTBOX_WIDTH+40, -1 )
#endif
                              );
        
        parent->AddControl( m_SelLayerBox );
        parent->AddControl( m_SelLayerBox );
    }
    }