Skip to content

Commit

Permalink
keep care that adjustTableHeaderPosition does not error if no appBar …
Browse files Browse the repository at this point in the history
…is present
  • Loading branch information
fschade committed Jun 29, 2021
1 parent 958997d commit b6ce303
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/web-app-files/src/mixins/filesListPositioning.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ export default {
adjustTableHeaderPosition() {
this.$nextTick(() => {
const appBar = document.querySelector('#files-app-bar')

if (!appBar) {
this.headerPosition = 0
return
}

this.headerPosition = appBar.getBoundingClientRect().height
})
}
Expand Down

0 comments on commit b6ce303

Please sign in to comment.