[Plot] Change style when stacked

Change plot style when in stacked plot mode, such that
plots stack as expected. (Without this change, the
gl-plot class's height of 100% will cause all plots to
fill the full vertical space, effectively acting
overlaid.) WTD-625.
This commit is contained in:
Victor Woeltjen 2014-12-11 17:01:57 -08:00
parent cd8deca1b3
commit 1b6ce10dd9

View File

@ -1,9 +1,10 @@
<div class="gl-plot"
ng-controller="TelemetryController as telemetry">
<span ng-controller="TelemetryController as telemetry">
<span ng-controller="PlotController as plot"
ng-mouseleave="representation.showControls = false">
<span ng-repeat="subplot in plot.getSubPlots()">
<div class="gl-plot"
ng-style="{ height: 100 / plot.getSubPlots().length + '%'}"
ng-repeat="subplot in plot.getSubPlots()">
<div class="gl-plot-legend">
<span class='plot-legend-item'
ng-repeat="telemetryObject in subplot.getTelemetryObjects()">