mirror of
https://github.com/nasa/openmct.git
synced 2025-06-10 03:11:39 +00:00
[Frontend] Fix plot image cutoff on export
The images were being cutoff due to the "top" attribute of .gl-plot not changing when the buttons were hidden. The buttons are now hidden by CSS class rather than ng-show, which makes updating the .gl-plot top attribute easier.
This commit is contained in:
parent
7d13ce0626
commit
35a331f3fd
@ -43,6 +43,16 @@
|
|||||||
top: $btnExportH + $interiorMargin;
|
top: $btnExportH + $interiorMargin;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&.hide-l-btn-set {
|
||||||
|
.s-button.t-export {
|
||||||
|
@include trans-prop-nice(opacity, 0ms, 0ms);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
.gl-plot {
|
||||||
|
@include trans-prop-nice(top, $dur: 0ms);
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.gl-plot {
|
.gl-plot {
|
||||||
|
@ -20,8 +20,9 @@
|
|||||||
at runtime from the About dialog for additional information.
|
at runtime from the About dialog for additional information.
|
||||||
-->
|
-->
|
||||||
<span ng-controller="PlotController as plot"
|
<span ng-controller="PlotController as plot"
|
||||||
class="abs holder holder-plot">
|
class="abs holder holder-plot"
|
||||||
<span class="l-btn-set" ng-show="!plot.hideExportButtons">
|
ng-class="{'hide-l-btn-set': plot.hideExportButtons}">
|
||||||
|
<span class="l-btn-set">
|
||||||
<a class="s-button t-export icon-download labeled first"
|
<a class="s-button t-export icon-download labeled first"
|
||||||
ng-click="plot.exportJPG()"
|
ng-click="plot.exportJPG()"
|
||||||
title="Export This View's Data as JPG">
|
title="Export This View's Data as JPG">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user