I am trying to create an horizontal slider with a round thumbimage. I took 
the default blue theme where the slider track is composed of 3 images 
(sliderBlueLeft.png, sliderBlueCenter.png and sliderBlueRight.png) that 
compose an horizontal image border. 
The problem is that this horizontal image border is drawn as the top border 
of the slider component instead of beeing at is center. 
I don't know if this is the expected behaviour or a bug (in the border 
editor of the Codename One Designer, the 3 images appear at the center of 
the 9 border components so I would expect them to be render at the center). 
As a consequence, my thumbimage is not centered vertically with the track 
of the slider but appear bellow it (the thumbimage is correctly centered at 
the middle of the height dimension of the slider component but the track is 
at the top of it): 

<https://lh3.googleusercontent.com/-cBTcE_v1IdM/WufVpujX4jI/AAAAAAAAADE/5MZfWo_I0RIgBamJ2j4O_w-KXDmoXnXgQCLcBGAs/s1600/cn1_slider_issue.png>


How can I create an horizontal slider with a thumbImage correctly centered 
on the track?


-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/5db2d4ec-e542-4b5a-8780-f5495a4bed60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to