From: Jim Procter Date: Wed, 29 Jul 2020 17:47:40 +0000 (+0100) Subject: JAL-3371 JAL-2983 don't modify 'extent' of slider - this is managed by look and feel X-Git-Tag: Release_2_11_1_1~13^2~21^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=37668aa43e535d99d5745880cef6eb0aeb1dd422;p=jalview.git JAL-3371 JAL-2983 don't modify 'extent' of slider - this is managed by look and feel --- diff --git a/src/jalview/gui/Slider.java b/src/jalview/gui/Slider.java index c8f673d..7f18461 100644 --- a/src/jalview/gui/Slider.java +++ b/src/jalview/gui/Slider.java @@ -59,9 +59,7 @@ public class Slider extends JSlider setMinimum(0); sliderScaleFactor = 100f / (max - min); int sliderMax = (int) ((max - min) * sliderScaleFactor); - int extent = 1; - setExtent(extent); - setMaximum(sliderMax + extent); + setMaximum(sliderMax); setSliderValue(value); }