{ "id": "119498", "key": "TIMOB-15099", "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": [ { "id": "15935", "description": "2014 Sprint 06", "name": "2014 Sprint 06", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15936", "description": "2014 Sprint 06 SDK", "name": "2014 Sprint 06 SDK", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-25T21:55:20.000+0000", "created": "2013-09-05T09:23:21.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_views", "parity", "qe-testadded" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [ { "id": "37816", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "130883", "key": "AC-1431", "fields": { "summary": "Android: borderRadius does not understand 'dp' units", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "36628", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "128970", "key": "AC-1136", "fields": { "summary": "BorderRadius does not work with px value", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "35759", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "127305", "key": "TIMOB-16564", "fields": { "summary": "Android: BorderRadius property not supporting all units (dp,dip, pt, px)", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "35792", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "125522", "key": "TIMOB-16333", "fields": { "summary": "Android, iOS - displayCaps.platformWidth/Height is not consistent to project defaultunit type", "status": { "description": "Submitted for code review", "name": "In Review", "id": "10003", "statusCategory": { "id": 4, "key": "indeterminate", "colorName": "yellow", "name": "In Progress" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2016-09-09T16:38:04.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "The {{borderRadius}} property does not adhere to the default unit set in {{tiapp.xml}}. Both {{borderWidth}} and {{borderRadius}} only accept {{Number}}, so it's not possible to workaround by explicitly setting the unit. Like most other dimension-related properties (except {{fontSize}} as far as I know) {{borderWidth}} *does* use the default unit.\r\n\r\nh1. To reproduce\r\n\r\n# Create a new app\r\n# Replace the code in {{app.js}} by:\r\n {code}\r\n var w = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n modal: false\r\n });\r\n var v = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n borderRadius: 150,\r\n width: 300,\r\n height: 300,\r\n borderWidth: 100,\r\n borderColor: 'black'\r\n });\r\n w.add(v);\r\n w.open();\r\n {code}\r\n# Run the app on both iOS and Android and the result will be like screenshots 1 and 2.\r\n# Now set the default unit to {{dp}} by adding this to the {{tiapp.xml}}:\r\n {code}\r\n dp\r\n {code}\r\n# Run the app on both platforms again and the result will be like screenshots 1 and 3. As you can see because of the DPI of the tested device the border radius is about half of what we expected.", "attachment": [ { "id": "42141", "filename": "1-ios.jpg", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-09-05T09:23:21.000+0000", "size": 39970, "mimeType": "image/jpeg" }, { "id": "42142", "filename": "2-android-px.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-09-05T09:23:21.000+0000", "size": 19508, "mimeType": "image/png" }, { "id": "42143", "filename": "3-android-dp.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-09-05T09:23:21.000+0000", "size": 19648, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: borderRadius does not adhere to defaultunit", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK/CLI 3.1.2.GA\r\nAndroid 4.1.2 on Samsung Galaxy S2", "comment": { "comments": [ { "id": "290779", "author": { "name": "vkorol", "key": "vkorol", "displayName": "Viktor Korol", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Please fix this issue", "updateAuthor": { "name": "vkorol", "key": "vkorol", "displayName": "Viktor Korol", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2014-02-01T06:06:53.000+0000", "updated": "2014-02-01T06:06:53.000+0000" }, { "id": "290881", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Use the default unit for radius.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5310", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-02-03T16:39:41.000+0000", "updated": "2014-02-03T16:39:41.000+0000" }, { "id": "294581", "author": { "name": "vkorol", "key": "vkorol", "displayName": "Viktor Korol", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Please merge this fix.", "updateAuthor": { "name": "vkorol", "key": "vkorol", "displayName": "Viktor Korol", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2014-02-25T13:41:03.000+0000", "updated": "2014-02-25T13:41:03.000+0000" }, { "id": "298638", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "New PR's\nmaster - https://github.com/appcelerator/titanium_mobile/pull/5521\n3_2_X - https://github.com/appcelerator/titanium_mobile/pull/5524", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-25T18:33:05.000+0000", "updated": "2014-03-25T18:33:05.000+0000" }, { "id": "298760", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "borderRadius responds to the default unit defined in tiapp.xml \r\nas dp\r\nborderRadius is rendered same for both android and iOS platform.\r\n\r\nVerified the fix, hence closing the issue\r\n\r\nEnvironment used:\r\nDevice : Google Nexus 5, Android Version: 4.4.2\r\nDevice : iPhone 5s , iOS version : 7.1\r\nSDK: 3.2.3.v20140325145222\r\nCLI version : 3.2.3-dev\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.3.1\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nAppcelerator Studio, build: 3.2.3.201403250634\r\ntitanium-code-processor: 1.1.0\r\nXCode : 5.1 ", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-26T07:28:04.000+0000", "updated": "2014-03-26T07:28:04.000+0000" }, { "id": "395687", "author": { "name": "asiby", "key": "asiby", "displayName": "Abdoulaye Siby", "active": true, "timeZone": "America/Havana" }, "body": "Guys, this issue is not solved. Or if it was, then here it is crawling back in from the deads.\r\n\r\nI am using SDK 5.3.1 and it exists also on SDK 5.4.\r\n\r\nWe have even tried to pass the value using something similar to the following ...\r\n\r\n\r\n{code:java}\r\nborderRadius: isAndroid ? require('alloy/measurement').dpToPX(40) : 40\r\n{code}\r\n\r\n... but it has an erratic behaviour from one Android to another.\r\n\r\nThe result is exactly similar to the screen capture provided by Fokke Zandbergen.", "updateAuthor": { "name": "asiby", "key": "asiby", "displayName": "Abdoulaye Siby", "active": true, "timeZone": "America/Havana" }, "created": "2016-09-09T16:36:16.000+0000", "updated": "2016-09-09T16:36:16.000+0000" }, { "id": "395688", "author": { "name": "asiby", "key": "asiby", "displayName": "Abdoulaye Siby", "active": true, "timeZone": "America/Havana" }, "body": "Wow, that is another bug here in the jira site. It destroyed a simple javascript line that was supposed to look like ...\r\n\r\n{color:#8eb021}borderRadius: isAndroid ? require('alloy/measurement').dpToPX(40) : 40{color}", "updateAuthor": { "name": "asiby", "key": "asiby", "displayName": "Abdoulaye Siby", "active": true, "timeZone": "America/Havana" }, "created": "2016-09-09T16:38:04.000+0000", "updated": "2016-09-09T16:38:04.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }