Fix flowsheet auto-scroll to end

This commit is contained in:
Jiang Yio 2025-01-02 22:49:25 -05:00
parent 4708e5e0eb
commit e648988b53

View File

@ -226,7 +226,7 @@
}, },
watch: { watch: {
async resultset(value) { async resultset(value) {
this.$nextTick(() => this.$refs.headers ? this.$refs.headers.scrollIntoView({ block: 'nearest', inline: 'end' }) : null); this.$nextTick(() => (this.$refs.headers) && (this.$refs.headers.length > 0) ? this.$refs.headers[this.$refs.headers.length - 1].scrollIntoView({ block: 'nearest', inline: 'end' }) : null);
} }
}, },
methods: { methods: {