Calculate background visibility, even if the task list is empty (#14870)

This commit is contained in:
Zachary Flower
2023-11-03 14:58:58 -06:00
committed by GitHub
parent 1892d6288a
commit cb168338ee

View File

@@ -697,13 +697,13 @@ export default {
},
setColumnBackgroundVisibility () {
this.$nextTick(() => {
if (!this.$refs.columnBackground || !this.$refs.tasksList) return;
if (!this.$refs.columnBackground) return;
const tasksWrapperEl = this.$refs.tasksWrapper;
const tasksWrapperHeight = tasksWrapperEl.offsetHeight;
const quickAddHeight = this.$refs.quickAdd ? this.$refs.quickAdd.offsetHeight : 0;
const tasksListHeight = this.$refs.tasksList.$el.offsetHeight;
const tasksListHeight = this.$refs.tasksList ? this.$refs.tasksList.$el.offsetHeight : 0;
let combinedTasksHeights = tasksListHeight + quickAddHeight;