Fixed an issue where the scroll position in the Object Explorer was not retained when switching workspaces. #8497
parent
627aa5d695
commit
bbef00a151
|
|
@ -31,4 +31,5 @@ Bug fixes
|
|||
*********
|
||||
|
||||
| `Issue #8443 <https://github.com/pgadmin-org/pgadmin4/issues/8443>`_ - Fixed an issue where the debugger hangs when stepping into nested function/procedure.
|
||||
| `Issue #8497 <https://github.com/pgadmin-org/pgadmin4/issues/8497>`_ - Fixed an issue where the scroll position in the Object Explorer was not retained when switching workspaces.
|
||||
| `Issue #8556 <https://github.com/pgadmin-org/pgadmin4/issues/8556>`_ - Ensure that graph data is updated even when the Dashboard tab is inactive.
|
||||
|
|
@ -72,9 +72,9 @@ export function WorkspaceProvider({children}) {
|
|||
pgAdmin.Browser.docker.currentWorkspace = newVal;
|
||||
if (newVal == WORKSPACES.DEFAULT) {
|
||||
setTimeout(() => {
|
||||
pgAdmin.Browser.tree.selectNode(lastSelectedTreeItem.current);
|
||||
pgAdmin.Browser.tree.selectNode(lastSelectedTreeItem.current, true, 'center');
|
||||
lastSelectedTreeItem.current = null;
|
||||
}, 0);
|
||||
}, 250);
|
||||
} else {
|
||||
// Get the selected tree node and save it into the state variable.
|
||||
let selItem = pgAdmin.Browser.tree.selected();
|
||||
|
|
@ -92,7 +92,7 @@ export function WorkspaceProvider({children}) {
|
|||
if (wsConfig?.enableOnNoTabs) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
if(wsConfig) {
|
||||
return Boolean(pgAdmin.Browser.docker[wsConfig.docker]?.layoutObj?.getLayout()?.dockbox?.children?.[0]?.tabs?.length);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue