From f202b289e0ca0a7084e6913dd9e126fb55043f7b Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Fri, 27 Oct 2017 21:30:40 +0300 Subject: [PATCH] Slider fix to PlotContainer --- .../main/kotlin/inr/numass/viewer/SpectrumView.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/numass-viewer/src/main/kotlin/inr/numass/viewer/SpectrumView.kt b/numass-viewer/src/main/kotlin/inr/numass/viewer/SpectrumView.kt index 5922c9e4..a31e87a8 100644 --- a/numass-viewer/src/main/kotlin/inr/numass/viewer/SpectrumView.kt +++ b/numass-viewer/src/main/kotlin/inr/numass/viewer/SpectrumView.kt @@ -107,18 +107,18 @@ class SpectrumView( items += RangeSlider().apply { padding = Insets(0.0, 10.0, 0.0, 10.0) prefWidth = 300.0 + majorTickUnit = 500.0 + minorTickCount = 5 + prefHeight = 38.0 + isShowTickLabels = true + isShowTickMarks = true + + max = 4000.0 highValueProperty().bindBidirectional(upChannelProperty) lowValueProperty().bindBidirectional(loChannelProperty) lowValue = 500.0 highValue = 3100.0 - - majorTickUnit = 500.0 - max = 4000.0 - minorTickCount = 5 - prefHeight = 38.0 - isShowTickLabels = true - isShowTickMarks = true } vbox {