In the corona documentation it says the on/off slider does not support scaling and .width/.height properties, but Is there any way to change the size of the slider?
Many Thanks
In the corona documentation it says the on/off slider does not support scaling and .width/.height properties, but Is there any way to change the size of the slider?
Many Thanks
Hi @felix.courtiour,
Yes, the slider can be set to your desired size when you first create it. That “gotcha” in the documentation means that you shouldn’t use .width, .height. or scaling on the widget object after you create it… but setting its size upon creation is perfectly valid, using the width or height parameters inside the constructor table.
Take care,
Brent
Hi @felix.courtiour,
Yes, the slider can be set to your desired size when you first create it. That “gotcha” in the documentation means that you shouldn’t use .width, .height. or scaling on the widget object after you create it… but setting its size upon creation is perfectly valid, using the width or height parameters inside the constructor table.
Take care,
Brent