Commit 15977b45364d699b0f4fbfd00c64d12b6f336dbe
1 parent
e53b18d6
Exists in
master
and in
18 other branches
Fix regression with color axis
Showing
1 changed file
with
7 additions
and
5 deletions
Show diff stats
js/app/views/PlotComponents/PlotBaseAxisForm.js
... | ... | @@ -30,11 +30,13 @@ Ext.define('amdaPlotComp.PlotBaseAxisForm', { |
30 | 30 | |
31 | 31 | var isTImeUnitVisible = this.showTicksTimeSpacingCombo && isShowTicksSpacingVisible ; |
32 | 32 | |
33 | - this.getForm( ).findField('axis-grid-minor-space').setVisible( isShowTicksSpacingVisible ); | |
34 | - this.getForm( ).findField('axis-grid-major-space').setVisible( isShowTicksSpacingVisible ); | |
35 | - this.getForm( ).findField('axis-grid-minor-number').setVisible( isShowTicksNumberVisible); | |
36 | - this.getForm( ).findField('axis-grid-major-number').setVisible(isShowTicksNumberVisible); | |
37 | - this.getForm( ).findField('axis-tick-time-unit').setVisible( isTImeUnitVisible ); | |
33 | + if (this.showTickGridOptions) { | |
34 | + this.getForm( ).findField('axis-grid-minor-space').setVisible( isShowTicksSpacingVisible ); | |
35 | + this.getForm( ).findField('axis-grid-major-space').setVisible( isShowTicksSpacingVisible ); | |
36 | + this.getForm( ).findField('axis-grid-minor-number').setVisible( isShowTicksNumberVisible); | |
37 | + this.getForm( ).findField('axis-grid-major-number').setVisible(isShowTicksNumberVisible); | |
38 | + this.getForm( ).findField('axis-tick-time-unit').setVisible( isTImeUnitVisible ); | |
39 | + } | |
38 | 40 | }, |
39 | 41 | |
40 | 42 | getFormItems: function() { | ... | ... |