fix null error in VirtualListFooter.html (#456)
This commit is contained in:
parent
6ad20e72a7
commit
65ac7e22f4
|
@ -17,8 +17,13 @@
|
||||||
export default {
|
export default {
|
||||||
oncreate () {
|
oncreate () {
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
|
let node = this.refs.node
|
||||||
|
if (!node) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
mark('VirtualListFooter gBCR')
|
mark('VirtualListFooter gBCR')
|
||||||
let rect = this.refs.node.getBoundingClientRect()
|
let rect = node.getBoundingClientRect()
|
||||||
stop('VirtualListFooter gBCR')
|
stop('VirtualListFooter gBCR')
|
||||||
this.store.setForRealm({footerHeight: rect.height})
|
this.store.setForRealm({footerHeight: rect.height})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue