mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 15:43:48 +00:00
Plot label height adjustment. (#2524)
* Plot label height adjustment. * initialize xaxis label. * Plot label height adjustment. * initialize xaxis label. * Fixes incorrect width applied to the plot's X axis wrapper
This commit is contained in:
@ -214,11 +214,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="gl-plot-axis-area gl-plot-x"
|
<div class="gl-plot-axis-area gl-plot-x">
|
||||||
ng-style="{
|
|
||||||
left: (tickWidth - 30) + 'px'
|
|
||||||
}">
|
|
||||||
|
|
||||||
<mct-ticks axis="xAxis">
|
<mct-ticks axis="xAxis">
|
||||||
<div ng-repeat="tick in ticks track by tick.value"
|
<div ng-repeat="tick in ticks track by tick.value"
|
||||||
class="gl-plot-tick gl-plot-x-tick-label"
|
class="gl-plot-tick gl-plot-x-tick-label"
|
||||||
|
@ -31,6 +31,7 @@ define([
|
|||||||
var XAxisModel = Model.extend({
|
var XAxisModel = Model.extend({
|
||||||
initialize: function (options) {
|
initialize: function (options) {
|
||||||
this.plot = options.plot;
|
this.plot = options.plot;
|
||||||
|
this.set('label', options.model.name || '');
|
||||||
this.on('change:range', function (newValue, oldValue, model) {
|
this.on('change:range', function (newValue, oldValue, model) {
|
||||||
if (!model.get('frozen')) {
|
if (!model.get('frozen')) {
|
||||||
model.set('displayRange', newValue);
|
model.set('displayRange', newValue);
|
||||||
|
@ -56,7 +56,7 @@ $tabularTdPadTB: 2px;
|
|||||||
$plotYBarW: 60px;
|
$plotYBarW: 60px;
|
||||||
$plotYLabelMinH: 20px;
|
$plotYLabelMinH: 20px;
|
||||||
$plotYLabelW: 10px;
|
$plotYLabelW: 10px;
|
||||||
$plotXBarH: 20px;
|
$plotXBarH: 35px;
|
||||||
$plotLegendH: 20px;
|
$plotLegendH: 20px;
|
||||||
$plotSwatchD: 8px;
|
$plotSwatchD: 8px;
|
||||||
$plotDisplayArea: (0, 0, $plotXBarH, $plotYBarW); // 1: Top, 2: right, 3: bottom, 4: left
|
$plotDisplayArea: (0, 0, $plotXBarH, $plotYBarW); // 1: Top, 2: right, 3: bottom, 4: left
|
||||||
|
Reference in New Issue
Block a user