watch for left offset changes

This commit is contained in:
Scott Bell 2024-12-13 15:47:44 +01:00
parent aaec052783
commit 96d8870f22
3 changed files with 6 additions and 9 deletions

View File

@ -102,7 +102,6 @@ export default {
this.titleKey =
metadata.valuesForHints(['label'])?.[0]?.key ||
metadata.values().find((metadatum) => metadatum.format === 'string')?.key;
console.debug('🧀 titleKey:', this.titleKey);
this.updateViewBounds();

View File

@ -50,11 +50,6 @@ export default {
type: Number,
default: 0
}
},
watch: {
leftOffset(newVal) {
console.log('leftOffset received:', newVal);
}
}
};
</script>

View File

@ -106,9 +106,12 @@ export default {
additionalLeftOffset: 0
};
},
computed: {
extendedLeftOffset() {
return this.alignmentData.leftWidth + this.additionalLeftOffset;
watch: {
alignmentData: {
handler() {
this.extendedLeftOffset = this.alignmentData.leftWidth + this.additionalLeftOffset;
},
deep: true
}
},
beforeUnmount() {