mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 07:38:15 +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 class="gl-plot-axis-area gl-plot-x"
|
||||
ng-style="{
|
||||
left: (tickWidth - 30) + 'px'
|
||||
}">
|
||||
|
||||
<div class="gl-plot-axis-area gl-plot-x">
|
||||
<mct-ticks axis="xAxis">
|
||||
<div ng-repeat="tick in ticks track by tick.value"
|
||||
class="gl-plot-tick gl-plot-x-tick-label"
|
||||
|
@ -31,6 +31,7 @@ define([
|
||||
var XAxisModel = Model.extend({
|
||||
initialize: function (options) {
|
||||
this.plot = options.plot;
|
||||
this.set('label', options.model.name || '');
|
||||
this.on('change:range', function (newValue, oldValue, model) {
|
||||
if (!model.get('frozen')) {
|
||||
model.set('displayRange', newValue);
|
||||
|
Reference in New Issue
Block a user