mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that scroll bar on browser tree should be visible on windows resize #5402
This commit is contained in:
parent
b086e1fd83
commit
bb78d91d1b
@ -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.
|
||||
|
@ -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');
|
||||
|
@ -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'));
|
||||
}
|
||||
|
||||
|
@ -10,6 +10,10 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.browser-tree {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.file-tree > {
|
||||
div {
|
||||
position: absolute !important;
|
||||
|
Loading…
Reference in New Issue
Block a user