{ "id": "164557", "key": "TIMOB-24153", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-11-18T04:20:30.000+0000", "created": "2016-11-16T19:21:28.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-6.1.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "53495", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "126742", "key": "TIMOB-16512", "fields": { "summary": "Android: Expose properties/methods for controlling internal padding in TextField (and possibly TextArea)", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-11-18T18:29:14.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": "We implemented the {{padding}} property in TIMOB-16512 for Android, but iOS still uses {{paddingLeft}} and {{paddingRight}}. We should update them for a better parity.", "attachment": [], "flagged": false, "summary": "iOS: Add parity for Ti.UI.TextField.padding", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "401214", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8615\r\nUnit-Test: https://github.com/appcelerator/titanium-mobile-mocha-suite/pull/13\r\n\r\nTest-Case:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n layout: \"vertical\",\r\n backgroundColor: \"#fff\"\r\n});\r\n \r\nvar t1 = Ti.UI.createTextField({\r\n value: \"lllllllllmmmmmmmmmmmmmmlllllllllll\",\r\n \r\n // This will throw depreaction warnings\r\n paddingLeft: 20,\r\n paddingRight: 0,\r\n \r\n width: 100,\r\n height: Ti.UI.SIZE,\r\n borderColor: \"#000\",\r\n color: \"#000\",\r\n borderWidth: 1,\r\n top: 10\r\n});\r\n \r\nvar t2 = Ti.UI.createTextField({\r\n value: \"lllllllllmmmmmmmmmmmmmmlllllllllll\",\r\n \r\n // This is the new way to do it - with parity\r\n padding: {\r\n right: 20,\r\n left: 0\r\n },\r\n width: 100,\r\n height: Ti.UI.SIZE,\r\n borderColor: \"#000\",\r\n color: \"#000\",\r\n borderWidth: 1,\r\n top: 10\r\n});\r\n \r\nvar t3 = Ti.UI.createTextField({\r\n value: \"lllllllllmmmmmmmmmmmmmmlllllllllll\",\r\n padding: {\r\n left: 20,\r\n right: 20\r\n },\r\n width: 100,\r\n height: Ti.UI.SIZE,\r\n borderColor: \"#000\",\r\n color: \"#000\",\r\n borderWidth: 1,\r\n top: 10\r\n});\r\n \r\nvar t4 = Ti.UI.createTextField({\r\n value: \"lllllllllmmmmmmmmmmmmmmlllllllllll\",\r\n padding: {\r\n left: 0,\r\n right: 0\r\n },\r\n width: 100,\r\n height: 100,\r\n borderColor: \"#000\",\r\n color: \"#000\",\r\n borderWidth: 1,\r\n top: 10\r\n});\r\n \r\n \r\nwin.add(t1);\r\nwin.add(t2);\r\nwin.add(t3);\r\nwin.add(t4);\r\n \r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-16T19:26:56.000+0000", "updated": "2016-11-16T19:34:04.000+0000" }, { "id": "401548", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified fixed, {{padding}} property is now supported with iOS, and {{paddingLeft}} / {{paddingRight}} properties return Deprecated Warnings when used.\r\n\r\nTested On:\r\niPhone 6 Plus 10.1.1 Device & Simulator\r\niPhone 5S 9.3.5 Device\r\nMac OS Sierra (10.12.1)\r\nTi SDK: 6.1.0.v20161118100640\r\nAppc Studio: 4.8.0.201611121409\r\nAppc NPM: 4.2.8\r\nApp CLI: 6.1.0-14\r\nXcode 8.1\r\nNode v4.4.7\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-11-18T18:28:59.000+0000", "updated": "2016-11-18T18:28:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }