Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (switch)
Viewing all articles
Browse latest Browse all 28

No effect on setting height and width for Ti.UI.Switch control

$
0
0

I created a new alloy project (1.5.1) and added a switch control. Why does the height and width have no effect on the switch no matter what size i give?. It just sticks to a definite size. Trying to do this on the iOS.

index.xml

<Alloy>
    <Window class="container">
        <Label id="label" onClick="doClick">Hello, World</Label>
        <Switch value="false" top='100' height="100" width="200"></Switch>
    </Window>
</Alloy>

Viewing all articles
Browse latest Browse all 28

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>