From 8bf1c9606599e9e257fd8a5ec959479680314dde Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Tue, 24 Aug 2021 17:05:23 +0530 Subject: [PATCH] Fixed the export image issue where relation lines are over the nodes. Fixes #6531 --- docs/en_US/release_notes_5_7.rst | 1 + .../tools/erd/static/js/erd_tool/ui_components/BodyWidget.jsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en_US/release_notes_5_7.rst b/docs/en_US/release_notes_5_7.rst index 23b0efcb7..1c7009d65 100644 --- a/docs/en_US/release_notes_5_7.rst +++ b/docs/en_US/release_notes_5_7.rst @@ -19,6 +19,7 @@ Housekeeping Bug fixes ********* +| `Issue #6531 `_ - Fixed the export image issue where relation lines are over the nodes. | `Issue #6544 `_ - Fixed width limitation issue in PSQL tool window. | `Issue #6564 `_ - Fixed an issue where columns with sequences get altered unnecessarily with a schema diff tool. | `Issue #6572 `_ - Partially fixes the data output panel display issue. diff --git a/web/pgadmin/tools/erd/static/js/erd_tool/ui_components/BodyWidget.jsx b/web/pgadmin/tools/erd/static/js/erd_tool/ui_components/BodyWidget.jsx index 0fedead25..0e69c0b9a 100644 --- a/web/pgadmin/tools/erd/static/js/erd_tool/ui_components/BodyWidget.jsx +++ b/web/pgadmin/tools/erd/static/js/erd_tool/ui_components/BodyWidget.jsx @@ -593,7 +593,7 @@ export default class BodyWidget extends React.Component { let wrap = document.createElement('div'); wrap.setAttribute('style', svgEle.getAttribute('style')); svgEle.setAttribute('style', null); - svgEle.parentNode.appendChild(wrap); + svgEle.parentNode.insertBefore(wrap, svgEle); wrap.appendChild(svgEle); recurseElementChildren(svgEle); }