summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/port.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/port.c b/src/port.c
index 7f4df2d..801b26e 100644
--- a/src/port.c
+++ b/src/port.c
@@ -273,12 +273,12 @@ ganv_port_place_labels(GanvPort* port)
if (ganv_canvas_get_direction(canvas) == GANV_DIRECTION_RIGHT) {
ganv_item_set(GANV_ITEM(impl->value_label),
"x", PORT_LABEL_HPAD,
- "y", (port_h - vlabel_h) / 2.0,
+ "y", (port_h - vlabel_h) / 2.0 - PORT_LABEL_VPAD,
NULL);
} else {
ganv_item_set(GANV_ITEM(impl->value_label),
"x", (port_w - vlabel_w) / 2.0,
- "y", (port_h - vlabel_h) / 2.0,
+ "y", (port_h - vlabel_h) / 2.0 - PORT_LABEL_VPAD,
NULL);
}
vlabel_w += PORT_LABEL_HPAD;
@@ -288,7 +288,7 @@ ganv_port_place_labels(GanvPort* port)
if (ganv_canvas_get_direction(canvas) == GANV_DIRECTION_RIGHT) {
ganv_item_set(GANV_ITEM(label),
"x", vlabel_w + PORT_LABEL_HPAD,
- "y", (port_h - label_h) / 2.0,
+ "y", (port_h - label_h) / 2.0 - PORT_LABEL_VPAD,
NULL);
}
}