cairo_move_to (
cr,
- xoff + basic_text_x_pos (0),
+ xoff + basic_text_x_pos (0) + name_pad() * cos (angle ()),
yoff + slanted_height() - name_pad() * sin (angle())
);
}
/** @return grid spacing */
static uint32_t grid_spacing () {
- return 32;
+ return 24;
}
protected:
/** @return space around the connection indicator */
static uint32_t connection_indicator_pad () {
- return 8;
+ return 6;
}
static uint32_t mouseover_line_width () {
cairo_set_line_width (cr, label_border_width ());
cairo_stroke (cr);
- double const off = grid_spacing() / 2;
+ cairo_text_extents_t ext;
+ cairo_text_extents (cr, b->name().c_str(), &ext);
+ double const off = (grid_spacing() - ext.height) / 2;
set_source_rgb (cr, text_colour());
cairo_move_to (cr, xoff + x + name_pad(), yoff + name_pad() + off);