mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Refresh the SQL control, whenever necessary.
Also, remove the CodeMirror object for better clean up process. When a SQL control/tab is rendered in a hidden element, it does not render really well. Because - it rely on the height, and width of the container to count the gutten position, and margin, and other elements. Hence - whenever the tab, panel becomes visible, we will refresh the control.
This commit is contained in:
@@ -78,6 +78,9 @@ function(_, $, pgBrowser) {
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
var e = pgAdmin.Browser.editor;
|
||||
e.refresh.apply(e);
|
||||
}
|
||||
if (sql != '') {
|
||||
pgAdmin.Browser.editor.setValue(sql);
|
||||
|
||||
Reference in New Issue
Block a user