From 3321f3e34d7fad27302f1faff435d48819f83c67 Mon Sep 17 00:00:00 2001 From: mabashian Date: Mon, 11 Feb 2019 11:30:20 -0500 Subject: [PATCH] Fixes bug where tooltip was clipped when graph is zoomed out. Fixes linting error --- .../workflows/workflow-chart/workflow-chart.directive.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/src/templates/workflows/workflow-chart/workflow-chart.directive.js b/awx/ui/client/src/templates/workflows/workflow-chart/workflow-chart.directive.js index aef206d5c9..b9934bef07 100644 --- a/awx/ui/client/src/templates/workflows/workflow-chart/workflow-chart.directive.js +++ b/awx/ui/client/src/templates/workflows/workflow-chart/workflow-chart.directive.js @@ -225,6 +225,7 @@ export default ['moment', '$timeout', '$window', '$filter', 'TemplatesStrings', // In order for this to work in FF a height of at least 1 must be present .attr("width", 100) .attr("height", 1) + .style("overflow", "visible") .html(function(){ return `
${TemplatesStrings.get('workflow_maker.RUN')}: ${edgeTypeLabel}
@@ -283,8 +284,8 @@ export default ['moment', '$timeout', '$window', '$filter', 'TemplatesStrings', return `${arrowPoints.pt1.x},${arrowPoints.pt1.y} ${arrowPoints.pt2.x},${arrowPoints.pt2.y} ${arrowPoints.pt3.x},${arrowPoints.pt3.y}`; }); - tipRef.attr('height', tipDimensions.height); - tipRef.attr("transform", `translate(${xPos},${yPos})`) + tipRef.attr('height', scaledHeight); + tipRef.attr("transform", `translate(${xPos},${yPos})`); }; let g = new dagre.graphlib.Graph();