diff --git a/src/app/cartography/shared/widgets/interface-label.ts b/src/app/cartography/shared/widgets/interface-label.ts index d4f52c9f..4ed430ce 100644 --- a/src/app/cartography/shared/widgets/interface-label.ts +++ b/src/app/cartography/shared/widgets/interface-label.ts @@ -77,7 +77,10 @@ export class InterfaceLabelWidget { merge .select('text.interface_label') .text((l: InterfaceLabel) => l.text) - .attr('style', (l: InterfaceLabel) => this.cssFixer.fix(l.style)); + .attr('style', (l: InterfaceLabel) => this.cssFixer.fix(l.style)) + .attr('x', -InterfaceLabelWidget.SURROUNDING_TEXT_BORDER) + .attr('y', -InterfaceLabelWidget.SURROUNDING_TEXT_BORDER); + // update surrounding rect merge