{ "id": "159475", "key": "TIMOB-23189", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-08-28T23:06:21.000+0000", "created": "2016-04-11T20:53:23.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-5.3.0" ], "versions": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" }, { "id": "17993", "description": "Release 5.2.2", "name": "Release 5.2.2", "archived": false, "released": true, "releaseDate": "2016-04-05" } ], "issuelinks": [ { "id": "51336", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "159207", "key": "GB-443", "fields": { "summary": "AppDesigner: Quick Create", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:01:52.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Details:* On iOS, you cannot change the height or width (dp, percents, or absolute values) of Titanium.UI.Switch.\r\n\r\n*This is not reproducible on Android i.e. you can change the height and width.*\r\n\r\n*Steps to reproduce:*\r\n# Create a default Alloy app\r\n# In {{index.xml}}, add the following code:\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n# In {{index.tss}}, add the following code:\r\n{code}\r\n\".container\": {\r\n\tbackgroundColor:\"white\"\r\n}\r\n\r\n\"Label\": {\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\tcolor: \"#000\"\r\n}\r\n\r\n\"#label\": {\r\n\tfont: {\r\n\t\tfontSize: 12\r\n\t}\r\n}\r\n\r\n// change the height and width to use absolute values, dp, or other percentages\r\n\"#Switch_1\": {\r\n\t\"backgroundColor\": \"#000000\",\r\n\t\"height\": \"19.28%\",\r\n\t\"width\": \"30.80%\",\r\n\t\"left\": \"39.60%\",\r\n\t\"top\": \"60.80%\"\r\n}\r\n{code}\r\n# Install app to device\r\n\r\n*Actual:* The switch control is not resized; see attachments.\r\n*Expected:* The switch control should be resized.", "attachment": [ { "id": "58896", "filename": "android.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-11T20:52:39.000+0000", "size": 69636, "mimeType": "image/png" }, { "id": "58895", "filename": "ios.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-11T20:52:39.000+0000", "size": 23003, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Cannot change the width and height of Titanium.UI.Switch", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 4.6.0.201604071339\r\nAppc CLI NPM: 4.2.5-2\r\nAppc CLI Core: 5.3.0-12\r\nArrow: 1.7.30\r\nSDK: 5.3.0.v20160411082042\r\nNode: v4.2.4\r\nOS: El Capitan (10.11.4)\r\nXcode: 7.3\r\nDevices: iPhone Simulator (9.3)", "comment": { "comments": [ { "id": "382373", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey [~wluu], so you expect the \"wrapping view\" of the switch to resized, am I correct?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-11T22:49:34.000+0000", "updated": "2016-04-11T22:49:34.000+0000" }, { "id": "382380", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~hansknoechel], Yes.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-11T23:54:39.000+0000", "updated": "2016-04-11T23:54:39.000+0000" }, { "id": "382763", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The UISwitch is not designed to be customized , you cannot re-size it without transforming it, which isn't actual resizing but just stretching the object. From what i can see on the pictures its neither re-sizble on android just the View which holds the switch is being re-sized. On iOS since the switch is a very simple widget we don't give it a wrapper view , we directly add it to the parent. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-14T22:55:07.000+0000", "updated": "2016-04-14T22:55:07.000+0000" }, { "id": "394587", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "As Angel stated above, the switch is not supposed to be resizable. And since we add it directly to prevent another wrapper-view, this should be the way to go. If we still want to resize the wrapper that can be achieved by wrapping it and size that view. Please consider to resolve, thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-28T23:03:20.000+0000", "updated": "2016-08-28T23:03:20.000+0000" }, { "id": "415612", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:01:52.000+0000", "updated": "2017-03-24T18:01:52.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }