Merge pull request #2038 from SiboVG/issue-2033

[#2033] Fix negative slider value in instance separation
This commit is contained in:
Sibo Van Gool 2023-02-12 18:32:32 +00:00 committed by GitHub
commit 8360b16c0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ public class RailButtonConfig extends RocketComponentConfig {
if (component.getParent() != null && component.getParent().getLength() > 0) {
maxSeparationDistance = component.getParent().getLength();
}
panel.add(new BasicSlider(separationModel.getSliderModel(0, 0.001, maxSeparationDistance)), "w 100lp, wrap para");
panel.add(new BasicSlider(separationModel.getSliderModel(-maxSeparationDistance, maxSeparationDistance)), "w 100lp, wrap para");
}