From da6f9ab807d938ec91c78cd7661fbfdfe9aaee73 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 13 Jun 2012 20:58:12 +0000 Subject: [PATCH] Scale the piano roll right with stacked tracks, as well. git-svn-id: svn://localhost/ardour2/branches/3.0@12713 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/midi_time_axis.cc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index f0a9a8b2d4..b83f865ce0 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -172,14 +172,17 @@ MidiTimeAxisView::set_route (boost::shared_ptr rt) _range_scroomer->DragStarting.connect (sigc::mem_fun (*midi_view(), &MidiStreamView::suspend_updates)); _range_scroomer->DragFinishing.connect (sigc::mem_fun (*midi_view(), &MidiStreamView::resume_updates)); - /* Put the scroomer in a VBox with a padding label so that it can be reduced in height - for stacked-view tracks. + /* Put the scroomer and the keyboard in a VBox with a padding + label so that they can be reduced in height for stacked-view + tracks. */ - VBox* b = manage (new VBox); - b->pack_start (*_range_scroomer, false, false); - b->pack_start (*manage (new Label ("")), true, true); - controls_hbox.pack_start(*b); - controls_hbox.pack_start(*_piano_roll_header); + VBox* v = manage (new VBox); + HBox* h = manage (new HBox); + h->pack_start (*_range_scroomer); + h->pack_start (*_piano_roll_header); + v->pack_start (*h, false, false); + v->pack_start (*manage (new Label ("")), true, true); + controls_hbox.pack_start(*v); controls_ebox.set_name ("MidiTrackControlsBaseUnselected"); controls_base_selected_name = "MidiTrackControlsBaseSelected";