Question
How to get the position of the indicator in a slider?
Hi @Martin KJELDSEN !
I'm working on a slider and I have two questions for you. =)
- Is there a way to get the position of the indicator in a slider? I am showing the value of the slider in a textarea above the slider. I want to move the text if the indicator is moving. I would like to do something like this:
sliderValueText.moveTo(sliderBar.getIndicatorX(), SLIDER_TEXT_POS_Y);
- I think I've found a bug. When doing an interaction in the designer that is supposed to move a widget when slider value is changed it generates a comment in code:
//Interaction1
//When slider1 value changed move sliderValueText
//Set position x:71 and y:71 on sliderValueText
sliderValueText.moveTo(281,71);
But as you can see, the comment is not correct the x-position should be 281 and not 71. Just a minor thing I came across while testing in the designer.
Superthankful as always for help!
