diff --git a/common/widgets/lib_tree.cpp b/common/widgets/lib_tree.cpp index effd8bec3b..9135307346 100644 --- a/common/widgets/lib_tree.cpp +++ b/common/widgets/lib_tree.cpp @@ -79,8 +79,15 @@ LIB_TREE::LIB_TREE( wxWindow* aParent, LIB_TABLE* aLibTable, LIB_TREE_MODEL_ADAP } // Tree control +#ifdef __WXGTK__ + // Linux does not allow resizing without the header visible + m_tree_ctrl = new wxDataViewCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, + wxDV_SINGLE ); +#else m_tree_ctrl = new wxDataViewCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_SINGLE | wxDV_NO_HEADER ); +#endif + m_adapter->AttachTo( m_tree_ctrl ); if( aWidgets & DETAILS )