Project: titanium
Issue TIMOB-23430: Windows 10: Ti.UI.Switch default position is not centered
When positioning is not specified for a switch, it should be centered by default. This is the case for Windows 8.1 devices, however not for Windows 10 devices. _(see screenshots)_ h3. DEMO CODE: {code:java} var win = Titanium.UI.createWindow({ title:'Tab 5', backgroundColor:'green' }); var basicSwitch = Ti.UI.createSwitch({ borderRadius: 5, borderWidth: 8, borderColor: 'red', titleOn:'Notifications Enabled', titleOff:'Notifications Disabled', value:true, width: '80%', height:120, top: 200 }); win.add(basicSwitch); win.open(); {code} h2. Steps to Reproduce 1. Create a classic mobile project. 2. Include the demo code in the app.js. 3. Build to windows 10 mobile device or emulator. h2. Actual Result Switch is positioned to the left, not centered. h2. Expected Result Switch should be positioned in center by default.
Story points: 3