Skip to content

Commit

Permalink
feat(daffio): add scrollOffset so headings are not covered by the nav…
Browse files Browse the repository at this point in the history
…bar (#2929)
  • Loading branch information
xelaint authored Jul 23, 2024
1 parent d59140a commit bf21aab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/daffio/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const appRoutes: Routes = [
initialNavigation: 'enabledBlocking',
scrollPositionRestoration: 'enabled',
anchorScrolling: 'enabled',
scrollOffset: [0, 64],
//this ensures that clicking on the same fragment route a second time will scroll to the associated id.
onSameUrlNavigation: 'reload',
}),
Expand Down

0 comments on commit bf21aab

Please sign in to comment.