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 #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.
|
| `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;
|
pgAdmin.Browser.docker.currentWorkspace = newVal;
|
||||||
if (newVal == WORKSPACES.DEFAULT) {
|
if (newVal == WORKSPACES.DEFAULT) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
pgAdmin.Browser.tree.selectNode(lastSelectedTreeItem.current);
|
pgAdmin.Browser.tree.selectNode(lastSelectedTreeItem.current, true, 'center');
|
||||||
lastSelectedTreeItem.current = null;
|
lastSelectedTreeItem.current = null;
|
||||||
}, 0);
|
}, 250);
|
||||||
} else {
|
} else {
|
||||||
// Get the selected tree node and save it into the state variable.
|
// Get the selected tree node and save it into the state variable.
|
||||||
let selItem = pgAdmin.Browser.tree.selected();
|
let selItem = pgAdmin.Browser.tree.selected();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue