Skip to content

Commit 1d8b6f4

Browse files
Sugiyama popup now rendering correctly
Sugiyama popup was not rendering correctly when using a div with the same name as the Sugiyama popup
1 parent 8ff7904 commit 1d8b6f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

report/src/main/java/org/hjug/refactorfirst/report/HtmlReport.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,9 @@ public String renderClassGraphDotImage() {
504504
stringBuilder.append("<script>\n");
505505
stringBuilder.append("const " + classGraphName + "_dot = " + dot + "\n");
506506
stringBuilder.append("</script>\n");
507-
stringBuilder.append(generateForce3DPopup(classGraphName));
507+
stringBuilder.append(generateForce3DPopup(classGraphName + "3D"));
508508

509-
stringBuilder.append("Red lines represent back edges to remove.<br>\n");
509+
stringBuilder.append("<div align=\"center\">\nRed lines represent back edges to remove.<br>\n");
510510
stringBuilder.append("Zoom in / out with your mouse wheel and click/move to drag the image.\n");
511511
stringBuilder.append("</div>\n");
512512

@@ -590,7 +590,7 @@ public String renderCycleDotImage(RankedCycle cycle) {
590590
stringBuilder.append("<script>\n");
591591
stringBuilder.append("const " + cycleName + "_dot = " + dot + "\n");
592592
stringBuilder.append("</script>\n");
593-
stringBuilder.append(generateForce3DPopup(cycleName));
593+
stringBuilder.append(generateForce3DPopup(cycleName + "3D"));
594594

595595
stringBuilder.append("<div align=\"center\">\n");
596596
stringBuilder.append("Red lines represent back edges to remove.<br>\n");

0 commit comments

Comments
 (0)