Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fixing wrong content scrolling on dir change

Ilian Sapundshievc301e2b60b08
diff --git a/app/perspectives/grid-perspective/src/index.js b/app/perspectives/grid-perspective/src/index.js
index d1288bf9a..93963110e 100644
--- a/app/perspectives/grid-perspective/src/index.js
+++ b/app/perspectives/grid-perspective/src/index.js
@@ -238,14 +238,14 @@ class GridPerspective extends React.Component<Props, State> {
// Clear selection on directory change
this.clearSelection();
- const grid = document.querySelector(
- '[data-tid="perspectiveGridFileTable"]'
- );
- const firstGridItem = grid.querySelector('div');
+ // const grid = document.querySelector(
+ // '[data-tid="perspectiveGridFileTable"]'
+ // );
+ // const firstGridItem = grid.querySelector('div');
- if (isObj(firstGridItem)) {
- firstGridItem.scrollIntoView({ top: 0 });
- }
+ // if (isObj(firstGridItem)) {
+ // firstGridItem.scrollIntoView({ top: 80 });
+ // }
}
};