13
0

L: fix the size of the toolbars to the visible ruler height

This commit is contained in:
Ben Loftis 2024-05-21 07:37:28 -05:00
parent a22de38566
commit 6ba1d6314f
2 changed files with 5 additions and 4 deletions

View File

@ -675,8 +675,9 @@ Editor::Editor ()
tsizer->attach(*spcr, 5,6, 1,2, SHRINK, SHRINK); //approx offset
VBox *tbar_packer = manage(new VBox());
tbar_packer->pack_end(*tsizer, true, true);
tbar_packer->pack_end(*marker_hbox, true, true, 4);
tbar_packer->pack_end(*tsizer, FILL|EXPAND, FILL|EXPAND);
tbar_packer->pack_end(*marker_hbox, true, true);
tbar_packer->pack_end(*manage (new Label()), true, true);
time_bars_event_box.add (*tbar_packer);
#else
time_bars_event_box.add (time_bars_vbox);

View File

@ -704,8 +704,8 @@ Editor::update_ruler_visibility ()
ruler_separator->set_y_position (ruler_separator_y);
time_bars_vbox.set_size_request (-1, ruler_separator_y);
#ifdef LIVETRAX
time_bars_hbox.set_size_request (-1, ruler_separator_y);
time_bars_hbox.set_border_width (4);
time_bars_event_box.set_size_request (-1, ruler_separator_y);
time_bars_event_box.set_border_width (4);
#endif
/* move hv_scroll_group (trackviews) to the end of the timebars */