Ensure that scroll bar on browser tree should be visible on windows resize #5402

This commit is contained in:
Nikhil Mohite 2022-10-06 15:58:05 +05:30 committed by GitHub
parent b086e1fd83
commit bb78d91d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 11 deletions

View File

@ -45,3 +45,4 @@ Bug fixes
| `Issue #5352 <https://github.com/pgadmin-org/pgadmin4/issues/5352>`_ - Fixed error occurring while LDAP authentication for a user with multiple email attributes.
| `Issue #5367 <https://github.com/pgadmin-org/pgadmin4/issues/5367>`_ - Ensure that the correct value should be returned if an exception occurs while decoding the password.
| `Issue #5368 <https://github.com/pgadmin-org/pgadmin4/issues/5368>`_ - Fixed the issue while downloading the file from the file manager.
| `Issue #5402 <https://github.com/pgadmin-org/pgadmin4/issues/5402>`_ - Ensure that scroll bar on browser tree should be visible on windows resize.

View File

@ -196,7 +196,7 @@ define('pgadmin.browser', [
isPrivate: true,
icon: '',
limit: 1,
content: '<div id="tree" class="aciTree"></div>',
content: '<div id="tree" class="browser-tree"></div>',
onCreate: function(panel, $container) {
toolBar.initializeToolbar(panel, wcDocker);
$container.addClass('pg-no-overflow');

View File

@ -87,20 +87,11 @@ var initBrowserTree = async (pgBrowser) => {
}
await treeModelX.root.ensureLoaded();
var _height = undefined;
[...document.getElementsByClassName('wcLayoutPane')].forEach((item, index) => {
if ($(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}
height={_height} disableCache={true} />
onReady={itemHandle} create={create} remove={remove} update={update} height={'100%'} disableCache={true} />
, document.getElementById('tree'));
}

View File

@ -10,6 +10,10 @@
width: 100%;
}
.browser-tree {
height: 100%;
}
.file-tree > {
div {
position: absolute !important;