From 2e5c6203510e299adb4082c54c9b900b41bdb361 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 25 Jan 2017 14:46:37 -0500 Subject: [PATCH] fix(network): #2589 vertically center label in network circle node (#2593) --- examples/network/edgeStyles/colors.html | 22 +++++++++++-------- .../modules/components/nodes/shapes/Circle.js | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/examples/network/edgeStyles/colors.html b/examples/network/edgeStyles/colors.html index 99d98b11..4f99a340 100644 --- a/examples/network/edgeStyles/colors.html +++ b/examples/network/edgeStyles/colors.html @@ -30,14 +30,14 @@ diff --git a/lib/network/modules/components/nodes/shapes/Circle.js b/lib/network/modules/components/nodes/shapes/Circle.js index d8a9b2a1..a8f6d3bc 100644 --- a/lib/network/modules/components/nodes/shapes/Circle.js +++ b/lib/network/modules/components/nodes/shapes/Circle.js @@ -35,7 +35,7 @@ class Circle extends CircleImageBase { this.updateBoundingBox(x,y); this.labelModule.draw(ctx, this.left + this.textSize.width / 2 + this.margin.left, - this.top + this.textSize.height / 2 + this.margin.top, selected, hover); + y, selected, hover); } updateBoundingBox(x,y) {