mirror of
https://github.com/nasa/openmct.git
synced 2025-01-27 22:59:37 +00:00
fix: don't delete imagery size, update related telemetry on focusedImage change
This commit is contained in:
parent
622e6044a4
commit
55b8a4142c
@ -588,7 +588,6 @@ export default {
|
||||
focusedImageIndex() {
|
||||
this.trackDuration();
|
||||
this.resetAgeCSS();
|
||||
this.updateRelatedTelemetryForFocusedImage();
|
||||
this.getImageNaturalDimensions();
|
||||
},
|
||||
bounds() {
|
||||
@ -774,6 +773,10 @@ export default {
|
||||
this.layers = layersMetadata;
|
||||
if (this.domainObject.configuration) {
|
||||
const persistedLayers = this.domainObject.configuration.layers;
|
||||
if (!persistedLayers) {
|
||||
return;
|
||||
}
|
||||
|
||||
layersMetadata.forEach((layer) => {
|
||||
const persistedLayer = persistedLayers.find(object => object.name === layer.name);
|
||||
if (persistedLayer) {
|
||||
@ -960,6 +963,7 @@ export default {
|
||||
}
|
||||
|
||||
this.focusedImageIndex = index;
|
||||
this.updateRelatedTelemetryForFocusedImage();
|
||||
},
|
||||
trackDuration() {
|
||||
if (this.canTrackDuration) {
|
||||
|
@ -153,9 +153,6 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
// forcibly reset the imageContainer size to prevent an aspect ratio distortion
|
||||
delete this.imageContainerWidth;
|
||||
delete this.imageContainerHeight;
|
||||
this.bounds = bounds; // setting bounds for ImageryView watcher
|
||||
},
|
||||
timeSystemChange() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user