mirror of
https://github.com/nasa/openmct.git
synced 2025-04-09 04:14:32 +00:00
watch for left offset changes
This commit is contained in:
parent
aaec052783
commit
96d8870f22
@ -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();
|
||||
|
||||
|
@ -50,11 +50,6 @@ export default {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
leftOffset(newVal) {
|
||||
console.log('leftOffset received:', newVal);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user