Fixed an issue where the Browser panel is not completely viewable. Fixes #7026

This commit is contained in:
Khushboo Vashi 2022-04-13 17:37:34 +05:30 committed by Akshay Joshi
parent 86a3696ab4
commit 0b7bde2775
2 changed files with 12 additions and 2 deletions

View File

@ -25,6 +25,7 @@ Bug fixes
| `Issue #6725 <https://redmine.postgresql.org/issues/6725>`_ - Fixed an issue where the Query tool opens on minimum size if the user opens multiple query tool Window quickly.
| `Issue #6958 <https://redmine.postgresql.org/issues/6958>`_ - Only set permissions on the storage directory upon creation.
| `Issue #7026 <https://redmine.postgresql.org/issues/7026>`_ - Fixed an issue where the Browser panel is not completely viewable.
| `Issue #7168 <https://redmine.postgresql.org/issues/7168>`_ - Improvement to the Geometry Viewer popup to change the size of the result tables when column names are quite long.
| `Issue #7187 <https://redmine.postgresql.org/issues/7187>`_ - Fixed an issue where the downloaded ERD diagram was 0 bytes.
| `Issue #7188 <https://redmine.postgresql.org/issues/7188>`_ - Fixed an issue where the connection bar is not visible.

View File

@ -86,12 +86,21 @@ var initBrowserTree = async (pgBrowser) => {
return true;
}
await treeModelX.root.ensureLoaded()
await treeModelX.root.ensureLoaded();
var _height = undefined;
document.getElementsByClassName('wcLayoutPane').forEach((item, index) => {
if (index > 0 && $(item).find('#tree').length == 1) {
_height = item.clientHeight - 30;
}
});
// Render Browser Tree
await render(
<FileTreeX model={treeModelX}
onReady={itemHandle} create={create} remove={remove} update={update}/>
onReady={itemHandle} create={create} remove={remove} update={update}
height={_height} />
, document.getElementById('tree'));
}