2
0
mirror of https://github.com/frappe/books.git synced 2025-01-23 07:08:36 +00:00

fix: Update scroll position in nextTick

This commit is contained in:
Faris Ansari 2019-12-11 17:54:44 +05:30
parent 7baa7a7c59
commit 01d9191dcc

View File

@ -121,7 +121,9 @@ export default {
},
methods: {
onBodyScroll({ scrollLeft }) {
this.$refs.header.scrollLeft = scrollLeft;
this.$nextTick(() => {
this.$refs.header.scrollLeft = scrollLeft;
});
},
async fetchReportData() {
let data = await frappe.call({