From 0c11ef36be9864ec795f68410c862d70c8320bc0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 13 May 2017 20:40:31 +0100 Subject: [PATCH] Restore scrollbars on large audio mapping views on Linux (#970). --- src/wx/audio_mapping_view.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wx/audio_mapping_view.cc b/src/wx/audio_mapping_view.cc index af892bb11..a9cdb6699 100644 --- a/src/wx/audio_mapping_view.cc +++ b/src/wx/audio_mapping_view.cc @@ -138,6 +138,7 @@ AudioMappingView::AudioMappingView (wxWindow* parent) _grid->EnableEditing (false); _grid->SetCellHighlightPenWidth (0); _grid->SetDefaultRenderer (new NoSelectionStringRenderer); + _grid->EnableScrolling (true, true); _grid->AutoSize (); wxSizer* vertical_sizer = new wxBoxSizer (wxVERTICAL); @@ -271,7 +272,7 @@ AudioMappingView::set_output_channels (vector const & names) if (o < _grid->GetNumberCols ()) { _grid->DeleteCols (o, _grid->GetNumberCols() - o); } else if (o > _grid->GetNumberCols ()) { - _grid->InsertCols (_grid->GetNumberCols(), o - _grid->GetNumberCols()); + _grid->AppendCols (o - _grid->GetNumberCols()); } _grid->SetColLabelValue (0, wxT ("")); @@ -282,6 +283,8 @@ AudioMappingView::set_output_channels (vector const & names) update_cells (); setup_sizes (); + + Layout (); } void -- 2.30.2