{ "id": "117941", "key": "TIMOB-14753", "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": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15700", "description": "2013 Sprint 21 API", "name": "2013 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-10T22:59:19.000+0000", "created": "2013-08-02T19:03:20.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_views", "parity", "qe-manualtest", "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": "30602", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "117945", "key": "ALOY-772", "fields": { "summary": "Update dynamic_styling test app to account for TIMOB UI bugs", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-11-20T01:35:40.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": "h2. problem\r\n\r\nWhen a view in a vertical layout gets a {{borderRadius}} added to it, it pushes it to the end of the layout, regardless of its current position. \r\n\r\nh2. expected\r\n\r\nThe view should stay in its current position in the layout when it gets a borderRadius added to it.\r\n\r\nh2. test case\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff',\r\n\tmodal: false,\r\n\texitOnClose: true,\r\n\tlayout: 'vertical'\r\n});\r\nwin.addEventListener('click', function() {\r\n\tlabels[1].applyProperties({\r\n\t\tborderRadius: 16\r\n\t});\r\n});\r\n\r\nvar labels = [];\r\nfor (var i = 0; i < 4; i++) {\r\n\tlabels.push(Ti.UI.createLabel({\r\n\t\ttext: 'label ' + i,\r\n\t\tcolor: '#000',\r\n\t\tbackgroundColor: '#'+Math.floor(Math.random()*16777215).toString(16),\r\n\t\theight: 40,\r\n\t\twidth: 250,\r\n\r\n\t\t// Adding a starting borderRadius avoids the problem. It can be bigger or smaller than\r\n\t\t// the target borderRadius, as long as it is assigned a value.\r\n\t\t// borderRadius: 4\r\n\t}));\r\n\twin.add(labels[i]);\r\n}\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Adding borderRadius to a view in a vertical layout screws up layout", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.1.2\r\nAndroid 2.3.3 emulator", "comment": { "comments": [ { "id": "269437", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "PR : - \r\nhttps://github.com/appcelerator/titanium_mobile/pull/4645", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-09-04T05:32:47.000+0000", "updated": "2013-09-04T05:32:47.000+0000" }, { "id": "274722", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "CR + FR", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-10T22:59:19.000+0000", "updated": "2013-10-10T22:59:19.000+0000" }, { "id": "275904", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "The view stays in its current position in the layout when it gets a borderRadius added to it.\r\n\r\nVerified fix on:\r\nDevice : Google Nexus 7, Android Version: 4.3\r\nSDK: 3.2.0.v20131018154951\r\nCLI version : 3.2.0\r\nOS : MAC OSX 10.8.4\r\nAlloy : 1.2.2\r\nAppcelerator Studio, build: 3.2.0.201310181700\r\nXCode : 5", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-10-21T10:10:53.000+0000", "updated": "2013-10-21T10:10:53.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }