{ "id": "121470", "key": "TIMOB-15550", "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": "15707", "description": "2013 Sprint 23", "name": "2013 Sprint 23", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "15708", "description": "2013 Sprint 23 API", "name": "2013 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2013-11-15" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-10-25T00:40:27.000+0000", "created": "2013-10-21T23:37:50.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-03T21:48:21.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 the map is placed in a view hierarchy it can sometimes be placed below all views (even below the window background color). This happens for example when you animate the parent view position. But when placed in a quite large view hierarchy I've noted that it randomly can behave the same as described above.\r\n\r\n\r\nRun the code on 4.2.x device with Google Play installed.\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'transparent',\r\n orientationModes : [Titanium.UI.PORTRAIT],\r\n exitOnClose : true,\r\n navBarHidden : true\r\n});\r\nwin.open();\r\n \r\nvar view2 = Ti.UI.createView({\r\n width : Ti.UI.FILL,\r\n height : Ti.UI.FILL,\r\n backgroundColor : 'transparent'\r\n});\r\n \r\nvar view3 = Ti.UI.createView({\r\n top : 0,\r\n left : 0,\r\n width : 500,\r\n height : 200,\r\n backgroundColor : 'yellow'\r\n});\r\nvar label = Ti.UI.createLabel({\r\n color:'black',\r\n text: \"You should not see me if zOrderOnTop is set to true\",\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_LEFT,\r\n font: { fontSize: 30 },\r\n top: 0,\r\n left : 0\r\n});\r\nview3.add(label);\r\n \r\nvar MapModule = require('ti.map');\r\nvar mapview = MapModule.createView({\r\n mapType:MapModule.NORMAL_TYPE,\r\n //zOrderOnTop: true\r\n});\r\nview2.add(mapview);\r\nview2.add(view3);\r\nwin.add(view2);\r\n \r\n{code}\r\n\r\n1. Run the above code, you should see yellow label on top\r\n2. Uncomment zOrderOnTop property, run it again, you should NOT see yellow label. Depending on device, you may see the yellow label flashing for a little bit, as Android relayout its children. But once re-layout is done, you should NOT see the yellow label.\r\n\r\nFail case: yellow label on top of map\r\nExpected case: should not see yellow label.\r\n\r\nThis only happens on the first launch of the app on certain devices (listed in environment).", "attachment": [], "flagged": false, "summary": "Android Maps V2: Map is placed in a view hierarchy can sometimes be placed below all views", "creator": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Nexus 7 (4.3), Galaxy S4 (4.2.2) and Motorola Droid Razr Maxx HD (4.1.2)", "comment": { "comments": [ { "id": "276721", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The test case above isn't the original test case. It is my test case in an attempt to create a consistent use case for zOrderOnTop. The original fail case can no longer be reproduced with the current map version. I'm closing this issue since it's not really a bug.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-25T00:40:15.000+0000", "updated": "2013-10-25T00:40:15.000+0000" }, { "id": "408941", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T21:48:21.000+0000", "updated": "2017-03-03T21:48:21.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }