diff --git a/src/plugins/plot/src/telemetry/StackedPlotController.js b/src/plugins/plot/src/telemetry/StackedPlotController.js index c45e2417e4..1a533a0cfd 100644 --- a/src/plugins/plot/src/telemetry/StackedPlotController.js +++ b/src/plugins/plot/src/telemetry/StackedPlotController.js @@ -39,10 +39,11 @@ define([], function () { const thisRequest = { pending: 0 }; - currentRequest = thisRequest; - $scope.currentRequest = thisRequest; const telemetryObjects = $scope.telemetryObjects = []; const thisTickWidthMap = {}; + + currentRequest = thisRequest; + $scope.currentRequest = thisRequest; tickWidthMap = thisTickWidthMap; if (unlisten) { @@ -52,14 +53,10 @@ define([], function () { function addChild(child) { const id = openmct.objects.makeKeyString(child.identifier); + const legacyObject = openmct.legacyObject(child); + thisTickWidthMap[id] = 0; - thisRequest.pending += 1; - objectService.getObjects([id]) - .then(function (objects) { - thisRequest.pending -= 1; - const childObj = objects[id]; - telemetryObjects.push(childObj); - }); + telemetryObjects.push(legacyObject); } function removeChild(childIdentifier) { @@ -84,6 +81,7 @@ define([], function () { } thisRequest.pending += 1; + openmct.objects.get(domainObject.getId()) .then(function (obj) { thisRequest.pending -= 1; diff --git a/src/styles/_legacy-plots.scss b/src/styles/_legacy-plots.scss index 2da35f7107..0c367b3410 100644 --- a/src/styles/_legacy-plots.scss +++ b/src/styles/_legacy-plots.scss @@ -47,6 +47,7 @@ mct-plot { .c-plot, .gl-plot { overflow: hidden; + min-height: 100px; .s-status-taking-snapshot & { .c-control-bar { @@ -79,7 +80,8 @@ mct-plot { display: flex; flex: 1 1 auto; flex-direction: column; - overflow: hidden; + overflow-y: auto; + overflow-x: hidden; } &--stacked {