{ "id": "101585", "key": "TIMOB-11020", "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": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14126", "description": "Sprint 2012-19 Core", "name": "Sprint 2012-19 Core", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14271", "description": "2012 Sprint 19", "name": "2012 Sprint 19", "archived": true, "released": true, "releaseDate": "2012-09-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-20T17:09:05.000+0000", "created": "2012-09-20T09:30:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core", "qe-testadded" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [ { "id": "21132", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "93002", "key": "TIMOB-9469", "fields": { "summary": "Android: TiUIView does not clip children", "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 } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-07T10:44:45.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": "h3. Issue\r\n\r\nIn 2.1.3.v201209151203192.1.3 RC, on Android:\r\n\r\n1. If borderWidth is used the border cannot be hidden using the show()/hide() view functions. \r\n2. Also, any view placed on top of the view that has borderWidth set will be hidden from the view.\r\n\r\n\r\nh3. Steps to Reproduce\r\n\r\n1. Run the code below in 2.1.2GA, notice the red dot in the center of the circle. Tap the hello button to see the View appear and disappear. 2. Using 2.1.3.v20120915120319, notice that there is no red circle, and tapping the button does nothing.\r\n\r\n{noformat}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white'\r\n});\r\nwin.open();\r\nvar self = Ti.UI.createView();\r\nwin.add(self);\r\n\r\nvar loadingIndicatorView = Ti.UI.createView({\r\n backgroundColor : 'black',\r\n borderColor : 'black',\r\n borderWidth : 52,\r\n opacity : .6,\r\n top : 5,\r\n width : 52,\r\n height : 52,\r\n borderRadius : 52,\r\n zIndex : 1,\r\n});\r\n\r\nvar smallView = Ti.UI.createView({\r\n width : 10,\r\n height : 10,\r\n backgroundColor : 'red'\r\n});\r\n\r\nloadingIndicatorView.add(smallView);\r\nself.add(loadingIndicatorView);\r\nloadingIndicatorView.show();\r\n\r\nvar button = Ti.UI.createButton({\r\n title : 'Hello',\r\n width : 200,\r\n height : 100,\r\n top : 250\r\n});\r\n\r\nvar show = false;\r\n\r\nself.add(button);\r\nbutton.addEventListener('click', function(e) {\r\n if (show) {\r\n loadingIndicatorView.show();\r\n show = false;\r\n } else {\r\n show = true\r\n loadingIndicatorView.hide();\r\n\r\n }\r\n}); \r\n{noformat}\r\n\r\n*NOTE: The above code works fine on iOS on 2.1.3 RC build.", "attachment": [ { "id": "31579", "filename": "Screen Shot 2012-09-20 at 2.28.49 PM.png", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-20T14:29:13.000+0000", "size": 77116, "mimeType": "image/png" }, { "id": "31580", "filename": "Screen Shot 2012-09-20 at 2.36.32 PM.png", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-20T14:36:57.000+0000", "size": 12602, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: In 2.1.3 RC if borderWidth is used, show/hide on the border does not work and all views added on top will be hidden behind the border ", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Platform OS: Android\r\nTitanium SDK: 2.1.3 RC", "comment": { "comments": [ { "id": "219950", "author": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I want to confirm this bug, which is critical since it may silently destroy any existent UI using border properties. \r\n\r\nIt works fine using 2.1.3.v20120907163110, fails in the reported version.", "updateAuthor": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-20T10:44:45.000+0000", "updated": "2012-09-20T10:44:45.000+0000" }, { "id": "220013", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3013\r\n\r\nPlease test with modified case:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nvar loadingIndicatorView = Ti.UI.createView({\r\n\tbackgroundColor : 'black',\r\n\tborderColor : 'black',\r\n\tborderWidth : 12,\r\n\topacity : .6,\r\n\ttop : 5,\r\n\twidth : 52,\r\n\theight : 52,\r\n\tborderRadius : 52,\r\n\tzIndex : 1,\r\n});\r\n\r\nvar smallView = Ti.UI.createView({\r\n\twidth : 10,\r\n\theight : 10,\r\n\tbackgroundColor : 'red'\r\n});\r\n\r\nloadingIndicatorView.add(smallView);\r\nwin.add(loadingIndicatorView);\r\nloadingIndicatorView.show();\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle : 'Hello',\r\n\twidth : 200,\r\n\theight : 100,\r\n\ttop : 250\r\n});\r\n\r\nvar show = false;\r\n\r\nwin.add(button);\r\nbutton.addEventListener('click', function(e) {\r\n\tif (show) {\r\n\t\tloadingIndicatorView.show();\r\n\t\tshow = false;\r\n\t} else {\r\n\t\tshow = true\r\n\t\tloadingIndicatorView.hide();\r\n\r\n\t}\r\n});\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-20T15:19:45.000+0000", "updated": "2012-09-20T15:19:45.000+0000" }, { "id": "220015", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Backport PR: https://github.com/appcelerator/titanium_mobile/pull/3014", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-20T15:33:55.000+0000", "updated": "2012-09-20T15:33:55.000+0000" }, { "id": "220251", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on:\r\nosx Mountain Lion 10.8.1\r\nTitanium Studio, build: 2.1.2.201208301612\r\n\r\nIt is fixed for:\r\nTitanium SDK: 3.0.0.v20120921144915\r\nDevice: Nexus S3 4.0.4\r\n\r\nNote: Issue still occurs on Titanium SDK: 2.1.3.v20120920154617 ", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-21T17:24:11.000+0000", "updated": "2012-09-21T17:24:11.000+0000" }, { "id": "220381", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "closing as fixed.\nTested with:\nosx Mountain Lion 10.8.1\nTitanium Studio, build: 2.1.2.201208301612\nTitanium SDK: 2.1.3.v20120921190208\nTitanium SDK: 3.0.0.v20120921144915\nDevice: Nexus S3 4.0.4", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-24T17:18:39.000+0000", "updated": "2012-09-24T17:18:39.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }