mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
fix headers not resizing properly when all tracks set to minimum height, then expanded again, no need to redisplay tempo when altering ruler visibility (allocation takes care of that)
git-svn-id: svn://localhost/ardour2/branches/3.0@3801 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
91fea1066e
commit
8b0e9befb9
2 changed files with 4 additions and 4 deletions
|
|
@ -386,6 +386,8 @@ Editor::controls_layout_size_request (Requisition* req)
|
|||
|
||||
if (req->width != width) {
|
||||
req->width = width;
|
||||
time_button_event_box.set_size_request(edit_controls_vbox.get_width(), -1);
|
||||
zoom_box.set_size_request(edit_controls_vbox.get_width(), -1);
|
||||
}
|
||||
|
||||
gint height = min ( (gint) pos, (screen->get_height() - 400));
|
||||
|
|
@ -393,15 +395,13 @@ Editor::controls_layout_size_request (Requisition* req)
|
|||
req->height = height;
|
||||
}
|
||||
|
||||
if ((width != edit_controls_vbox.get_width()) || height != pos) {
|
||||
if (width != edit_controls_vbox.get_width()) {
|
||||
|
||||
/* this one is important: it determines how big the layout thinks it really is, as
|
||||
opposed to what it displays on the screen
|
||||
*/
|
||||
controls_layout.set_size (edit_controls_vbox.get_width(), pos );
|
||||
controls_layout.set_size_request(edit_controls_vbox.get_width(), -1);
|
||||
time_button_event_box.set_size_request(edit_controls_vbox.get_width(), -1);
|
||||
zoom_box.set_size_request(edit_controls_vbox.get_width(), -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -801,7 +801,7 @@ Editor::update_ruler_visibility ()
|
|||
time_canvas_event_box.queue_resize();
|
||||
compute_fixed_ruler_scale();
|
||||
update_fixed_rulers();
|
||||
redisplay_tempo (false);
|
||||
// redisplay_tempo (false);
|
||||
|
||||
time_canvas_event_box.show_all();
|
||||
ruler_label_event_box.show_all();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue