I want to build a toggle slider that has a second rectangle that I can programmaticaly position over to the right or left. The following code using leftInPixels
works fine so I don’t have a problem but initially I was trying to use paddingLeftInPixels
which was not working as expected and would result in the rectangle disappearing. What’s going on here? Why does it appear to be cropped at the center line?
Top 5 use leftInPixels
, bottom 5 use paddingLeftInPixels