pinafore/routes/_components/virtualList/VirtualListFooter.html
2018-04-27 18:16:57 -07:00

28 lines
690 B
HTML

<div class="virtual-list-footer"
ref:node
style="transform: translateY({{$heightWithoutFooter}}px);" >
<:Component {component} />
</div>
<style>
.virtual-list-footer {
position: absolute;
top: 0;
width: 100%;
}
</style>
<script>
import { virtualListStore } from './virtualListStore'
import { mark, stop } from '../../_utils/marks'
export default {
oncreate () {
requestAnimationFrame(() => {
mark('VirtualListFooter gBCR')
let rect = this.refs.node.getBoundingClientRect()
stop('VirtualListFooter gBCR')
this.store.setForRealm({footerHeight: rect.height})
})
},
store: () => virtualListStore
}
</script>