- const bool highlight = !dragging && s->pt_in_label_rect(
- signal_heading_rect, _mouse_point);
- s->paint_label(painter, signal_heading_rect, highlight);
+ const int y = t->get_v_offset() - v_offset;
+ const bool highlight = !dragging && t->pt_in_label_rect(
+ y, 0, w, _mouse_point);
+ t->paint_label(painter, y, w, highlight);