{ "id": "173709", "key": "TIMOB-27239", "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": null, "resolutiondate": null, "created": "2019-06-04T09:22:16.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-07-12T18:43:32.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "*Problem*\r\nAdding the same padding to a TextField on Android and iOS leads to different results.\r\nIt seems that Android uses pixels beacuse on phones with different densities you have different sizes of padding using the same digit. Instead iOS uses dp (correctly beacuse default unit in tiapp.xml is dp).\r\n\r\n*Test case*\r\n# Execute below code\r\n# Padding (focus only on left and right beacuse top and bottom aren't working on iOS) is different between Android (smaller) and iOS (bigger).\r\n\r\n{code:title=index.js}\r\n$.win.open();\r\n{code}\r\n\r\n\r\n{code:title=index.xml}\r\n\r\n\t\r\n\t\t\t\r\n\t\r\n\r\n{code}\r\n\r\n{code:title=index.tss}\r\n\"#win\": {\r\n\tbackgroundColor: 'black'\r\n}\r\n\r\n\"#field\": {\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.SIZE,\r\n\ttop: 32,\r\n\tbackgroundColor: 'red',\r\n\tpadding: {\r\n\t\ttop: 32,\r\n\t\tbottom: 32,\r\n\t\tright: 32,\r\n\t\tleft: 32,\r\n\t},\r\n\tvalue: 'Test Test Test Test'\r\n}\r\n{code}", "attachment": [ { "id": "66667", "filename": "android.jpg", "author": { "name": "mobile@informatica.aci.it", "key": "mobile@informatica.aci.it", "displayName": "ACI Informatica", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-06-04T08:55:45.000+0000", "size": 88793, "mimeType": "image/jpeg" }, { "id": "66666", "filename": "ios.png", "author": { "name": "mobile@informatica.aci.it", "key": "mobile@informatica.aci.it", "displayName": "ACI Informatica", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-06-04T08:55:44.000+0000", "size": 19262, "mimeType": "image/png" } ], "flagged": false, "summary": "TextField padding property uses different units between Android and iOS", "creator": { "name": "mobile@informatica.aci.it", "key": "mobile@informatica.aci.it", "displayName": "ACI Informatica", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "mobile@informatica.aci.it", "key": "mobile@informatica.aci.it", "displayName": "ACI Informatica", "active": true, "timeZone": "Europe/Rome" }, "environment": null, "comment": { "comments": [ { "id": "448807", "author": { "name": "gtassistro", "key": "gtassistro", "displayName": "Giorgio Tassistro", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think that height and width contrast with padding.\r\nTry to use a view as a container for textField and try to remove height and width elements.\r\n\r\nRegards \r\n", "updateAuthor": { "name": "gtassistro", "key": "gtassistro", "displayName": "Giorgio Tassistro", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-04T10:15:55.000+0000", "updated": "2019-06-04T13:38:15.000+0000" }, { "id": "448822", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-06-04T19:03:39.000+0000", "updated": "2019-06-04T19:03:39.000+0000" }, { "id": "448849", "author": { "name": "mobile@informatica.aci.it", "key": "mobile@informatica.aci.it", "displayName": "ACI Informatica", "active": true, "timeZone": "Europe/Rome" }, "body": "[~sdarda] This isn't a duplicate, but a different bug on the same property.\r\nThe other one is for top and bottom padding not working on iOS; this one is for different measurement units used between Android and iOS (of course can be noticed only on left and right padding as stated in point 2 of the test case).\r\nUsed the same example code because is very basic and the property is the same.", "updateAuthor": { "name": "mobile@informatica.aci.it", "key": "mobile@informatica.aci.it", "displayName": "ACI Informatica", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-06-05T09:04:40.000+0000", "updated": "2019-06-05T12:54:17.000+0000" }, { "id": "449770", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, This is a valid issue with SDK 8.0.2.GA in iOS simulator and Android emulator. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-07-12T18:43:32.000+0000", "updated": "2019-07-12T18:43:32.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }