{ "id": "152345", "key": "TIMOB-19798", "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": "17072", "name": "Release 5.1.2", "archived": false, "released": true, "releaseDate": "2016-01-12" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-12-01T07:59:00.000+0000", "created": "2015-10-26T16:01:16.000+0000", "epic": { "id": 134539, "key": "TIMOB-17487", "name": "Android: Support Android-L Functionality", "summary": "Android: Support Android 5.0 Functionality", "color": { "key": "color_7" }, "done": false }, "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "49991", "type": { "id": "10120", "name": "Gantt: finish-start", "inward": "has to be done after", "outward": "has to be done before" }, "inwardIssue": { "id": "152372", "key": "TIMOB-19802", "fields": { "summary": "Android: CardView should use standard property names", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "49612", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "152373", "key": "TIMOB-19803", "fields": { "summary": "Android: CardView should not have both borderRadius and cardCornerRadius", "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": "None", "id": "6" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "49611", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "152573", "key": "TIMOB-19842", "fields": { "summary": "Android: CardView cardPreventCornerOverlap and cardUseCompatPadding should not start with card", "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": "None", "id": "6" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2015-12-02T19:56: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "The following sample and attached screenshot demonstrate that the 5 {{contentPadding}} properties and {{cardCornerRadius}} do not use the default unit but are a Number used with {{px}}.\r\n\r\nIt should use the default unit like all views.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tlayout: 'vertical'\r\n});\r\n\r\nvar card = Ti.UI.Android.createCardView({\r\n\ttop: 20,\r\n\tleft: 20,\r\n\tright: 20,\r\n\r\n\tcontentPadding: 20,\r\n\tcardCornerRadius: 20\r\n});\r\n\r\ncard.add(Ti.UI.createLabel({\r\n\ttext: 'PADDING AND TEXT NOT AS EXPECTED',\r\n\tcolor: '#000'\r\n}));\r\n\r\nwin.add(card);\r\n\r\nvar card = Ti.UI.Android.createCardView({\r\n\ttop: 20,\r\n\tleft: 20,\r\n\tright: 20,\r\n\t\r\n\tcontentPaddingBottom: 20,\r\n\tcontentPaddingLeft: 20,\r\n\tcontentPaddingRight: 20,\r\n\tcontentPaddingTop: 20,\r\n\tcardCornerRadius: 20\r\n});\r\n\r\ncard.add(Ti.UI.createLabel({\r\n\ttext: 'PADDING AND TEXT NOT AS EXPECTED',\r\n\tcolor: '#000'\r\n}));\r\n\r\nwin.add(card);\r\n\r\nvar view = Ti.UI.createView({\r\n\ttop: 20,\r\n\tleft: 20,\r\n\tright: 20,\r\n\r\n\theight: Ti.UI.SIZE,\r\n\r\n\tborderRadius: 20,\r\n\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nview.add(Ti.UI.createLabel({\r\n\ttop: 20,\r\n\tright: 20,\r\n\tbottom: 20,\r\n\tleft: 20,\r\n\r\n\theight: Ti.UI.SIZE,\r\n\r\n\ttext: 'PADDING & RADIUS AS EXPECTED',\r\n\tcolor: '#000'\r\n}));\r\n\r\nwin.add(view);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "57135", "filename": "android_20151026-164754.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-26T16:01:03.000+0000", "size": 66074, "mimeType": "image/png" } ], "flagged": false, "summary": "CardView: contentPadding(X) and cardCornerRadius should use default unit", "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 5.1.0.v20151019145227", "closedSprints": [ { "id": 529, "state": "closed", "name": "2015 Sprint 24 SDK", "startDate": "2015-11-21T01:30:12.670Z", "endDate": "2015-12-05T01:30:00.000Z", "completeDate": "2015-12-07T03:57:17.094Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "371643", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-11-30T08:07:55.000+0000", "updated": "2015-12-01T06:54:36.000+0000" }, { "id": "371746", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR verified and approved.", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-01T05:10:16.000+0000", "updated": "2015-12-01T05:10:43.000+0000" }, { "id": "371756", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Master PR Merged\r\n\r\nAdditional Master PR for merge conflict: https://github.com/appcelerator/titanium_mobile/pull/7520\r\nMerged.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-01T07:14:37.000+0000", "updated": "2015-12-01T07:34:05.000+0000" }, { "id": "371757", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "5_1_X Backport PR: https://github.com/appcelerator/titanium_mobile/pull/7519", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-01T07:22:34.000+0000", "updated": "2015-12-01T07:22:34.000+0000" }, { "id": "371761", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Backport merged.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-01T07:58:33.000+0000", "updated": "2015-12-01T07:58:33.000+0000" }, { "id": "371950", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\ncontentPadding & cardcornerRadius properties use default unit. Verified using the code in the description.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.4.0.201511241829\r\nTi SDK : 5.1.2.v20151202061227\r\nTi CLI : 5.0.5\r\nAlloy : 1.7.26\r\nMAC Yosemite : 10.10.5\r\nAppc NPM : 4.2.2\r\nAppc CLI : 5.1.0\r\nNode: v0.12.27\r\nNexus 6P - Android 6.0", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-02T19:41:49.000+0000", "updated": "2015-12-02T19:41:49.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }