diff --git a/docs/en_US/release_notes_6_14.rst b/docs/en_US/release_notes_6_14.rst index 7529e048b..2a0f8e00a 100644 --- a/docs/en_US/release_notes_6_14.rst +++ b/docs/en_US/release_notes_6_14.rst @@ -31,4 +31,5 @@ Bug fixes | `Issue #7646 `_ - Ensure that the Import/Export server menu option is visible. | `Issue #7648 `_ - Fixed API test case for change password in the server mode. | `Issue #7649 `_ - Fixed an issue with the non-visibility of columns added prior to import/export data. + | `Issue #7656 `_ - Fixed an issue where textarea of the JSON Editor does not resize with dialog. | `Issue #7663 `_ - Fixed ModuleNotFoundError when running setup.py to load/dump servers. diff --git a/web/pgadmin/static/js/components/JsonEditor.jsx b/web/pgadmin/static/js/components/JsonEditor.jsx index 3dae7df05..4e5ae6bda 100644 --- a/web/pgadmin/static/js/components/JsonEditor.jsx +++ b/web/pgadmin/static/js/components/JsonEditor.jsx @@ -20,6 +20,13 @@ export default function JsonEditor({getEditor, value, options, className}) { modes: ['code', 'form', 'tree','preview'], }; + useEffect(()=>{ + const editorResizeObserver = new ResizeObserver(()=>{ + editor.current.resize(); + }); + editorResizeObserver.observe(eleRef.current); + }, []); + useEffect(()=>{ /* Create the object only once on mount */ editor.current = new OrigJsonEditor(eleRef.current, {