Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23430

Windows 10: Ti.UI.Switch default position is not centered

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Invalid
    • Affects Version/s: Release 5.3.0
    • Fix Version/s: None
    • Component/s: Windows
    • Labels:
    • Environment:

      Tested on:
      Windows 10 Pro
      Windows Phone 10.0 (Microsoft Lumia 640 LTE)
      Appc Studio: 4.6.0.201605201934
      Ti SDK: 5.3.0.v20160517124218
      Appc NPM: 4.2.5-5
      Appc Core: 5.3.0-46
      Node: v4.4.4

    • Story Points:
      3

      Description

      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)

      DEMO CODE:

      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();
      

      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.

      Actual Result

      Switch is positioned to the left, not centered.

      Expected Result

      Switch should be positioned in center by default.

        Attachments

        1. example.JPG
          example.JPG
          15 kB
        2. win_10.png
          win_10.png
          53 kB
        3. win_8.1.png
          win_8.1.png
          59 kB

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              htbryant Harry Bryant
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-9769
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code