Fixed sizing issue of help dialog for Query Tool and ERD Tool when open in the new browser tab. Fixes #6333

This commit is contained in:
Rahul Shirsat
2021-04-06 15:26:25 +05:30
committed by Akshay Joshi
parent c1ba645dce
commit 585ba81492
3 changed files with 13 additions and 2 deletions

View File

@@ -907,7 +907,12 @@ define('pgadmin.browser', [
window.open(fullUrl, 'postgres_help');
} else if(type == 'dialog_help') {
window.open(url, 'pgadmin_help');
if (pgWindow && pgWindow.default) {
pgWindow.default.open(url, 'pgadmin_help');
}
else {
window.open(url, 'pgadmin_help');
}
}
$('#live-search-field').focus();
},

View File

@@ -412,7 +412,12 @@ export default class BodyWidget extends React.Component {
onHelpClick() {
let url = url_for('help.static', {'filename': 'erd_tool.html'});
window.open(url, 'pgadmin_help');
if (this.props.pgWindow) {
this.props.pgWindow.open(url, 'pgadmin_help');
}
else {
window.open(url, 'pgadmin_help');
}
}
onLoadDiagram() {