{ "id": "103444", "key": "TIMOB-11493", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-10-25T00:31:52.000+0000", "created": "2012-10-15T22:38:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-06-19T12:44:44.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "The Child view remove() does not work on mobileWeb. \r\nh4.Steps to reproduce:\r\n1. Load the following app.js\r\n2. Run it on iPhone, Android Emulator\r\n3. Now run on Mobile Browser.\r\n\r\nExpected Result: Should show the number of views remaining accordingly lioke in iOS and Android.\r\n\r\nActual Results: Always shows that there are 6 views remaining.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\nbackgroundColor:'white'\r\n});\r\n\r\nvar v1 = Ti.UI.createView({\r\nheight : 40,\r\nwidth : 200,\r\nbackgroundColor : '#336699',\r\ntop : 10,\r\nborderRadius : 10\r\n});\r\n\r\nwin.add(v1);\r\n\r\nvar v2 = Ti.UI.createView({\r\nheight : 40,\r\nwidth : 200,\r\nbackgroundColor : '#ff0000',\r\ntop : 60,\r\nborderRadius : 10\r\n});\r\n\r\nwin.add(v2);\r\n\r\nvar v3 = Ti.UI.createWebView({\r\nheight : 40,\r\nwidth : 200,\r\nbackgroundColor : '#ff9900',\r\ntop : 110,\r\nborderRadius : 10,\r\nhtml : '
FOO
'\r\n});\r\n\r\nwin.add(v3);\r\n\r\nvar b1 = Ti.UI.createButton({\r\nheight : 40,\r\nwidth : 200,\r\ntitle : 'Remove View 1',\r\ntop : 160\r\n});\r\n\r\nwin.add(b1);\r\n\r\nb1.addEventListener('click', function() {\r\nwin.remove(v1);\r\nalert(\"views remaining:\" + win.children.length);\r\n});\r\n\r\nvar b2 = Ti.UI.createButton({\r\nheight : 40,\r\nwidth : 200,\r\ntitle : 'Remove View 2',\r\ntop : 210\r\n});\r\n\r\nwin.add(b2);\r\n\r\nb2.addEventListener('click', function() {\r\nwin.remove(v2);\r\nalert(\"views remaining:\" + win.children.length);\r\n});\r\nvar b3 = Ti.UI.createButton({\r\nheight : 40,\r\nwidth : 200,\r\ntitle : 'Remove View 3',\r\ntop : 260\r\n});\r\n\r\nwin.add(b3);\r\n\r\nb3.addEventListener('click', function() {\r\nwin.remove(v3);\r\nalert(\"views remaining:\" + win.children.length);\r\n});\r\nwin.open();\r\n\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "MobileWeb: remove for a child view does not work", "creator": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 2.1.3GA, Ti SDK 2.1.2, ", "comment": { "comments": [ { "id": "224863", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-11559", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-25T00:31:52.000+0000", "updated": "2012-10-25T00:31:52.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }