From b3aac4bc9075fc052113fc3116c214b3671d8a67 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Wed, 19 Nov 2008 18:07:10 +0000 Subject: [PATCH] Changed the bounding box for the expander button --- src/gui/widgets/timeline/timeline-header-container.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/widgets/timeline/timeline-header-container.cpp b/src/gui/widgets/timeline/timeline-header-container.cpp index af0b76bb1..ebe8d96b9 100644 --- a/src/gui/widgets/timeline/timeline-header-container.cpp +++ b/src/gui/widgets/timeline/timeline-header-container.cpp @@ -458,10 +458,9 @@ TimelineHeaderContainer::get_expander_button_rectangle( ASSERT(headerBoxes.find(track) != headerBoxes.end()); const Gdk::Rectangle &box = headerBoxes[track]; - const int y_centre = box.get_y() + box.get_height() / 2; return Gdk::Rectangle( - margin + box.get_x(), y_centre - expand_button_size / 2, - expand_button_size, expand_button_size); + margin + box.get_x(), margin + box.get_y(), + expand_button_size, box.get_height() - margin * 2); } void