Skip to content

Commit

Permalink
fix null error in VirtualListFooter.html (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Aug 21, 2018
1 parent 6ad20e7 commit 65ac7e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion routes/_components/virtualList/VirtualListFooter.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@
export default {
oncreate () {
requestAnimationFrame(() => {
let node = this.refs.node
if (!node) {
return
}

mark('VirtualListFooter gBCR')
let rect = this.refs.node.getBoundingClientRect()
let rect = node.getBoundingClientRect()
stop('VirtualListFooter gBCR')
this.store.setForRealm({footerHeight: rect.height})
})
Expand Down

0 comments on commit 65ac7e2

Please sign in to comment.