Skip to content

Commit

Permalink
fix: scrollTo resource after accepting federated connections
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannik Stehle committed Aug 15, 2024
1 parent a85724b commit e663689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-pkg/src/composables/scrollTo/useScrollTo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const useScrollTo = (): ScrollToResult => {
// files-app-bar, admin-settings-app-bar
const topbarElement = document.getElementById(options.topbarElement)
// topbar height + th height + height of one row = offset needed when scrolling top
const topOffset = topbarElement.offsetHeight + resourceElement.offsetHeight * 2
const topOffset = topbarElement?.offsetHeight || 0 + resourceElement.offsetHeight * 2

if (
resourceElement.getBoundingClientRect().bottom > window.innerHeight ||
Expand Down

0 comments on commit e663689

Please sign in to comment.