{ "id": "99023", "key": "TIMOB-10401", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-06-26T22:12:29.000+0000", "created": "2012-08-10T14:18:09.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "parity", "qe-mw082012" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [ { "id": "19829", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "98986", "key": "TIMOB-10380", "fields": { "summary": "MobileWeb: TabGroup: addTab results in Uncaught TypeError: Cannot read property of 'rightNavButton of undefined'", "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": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-24T20:53:03.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": "Ti.UI.Tab.window and setWindow are not respected.\r\n\r\nUncaught TypeError: Object [object TiUITab] has no method 'setWindow'\r\n\r\nThis is not a regression. This works on iOS and Android.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code:\r\n\r\n{code}\r\nvar mainTabGroup = Ti.UI.createTabGroup();\r\n\r\nvar mainTab1 = Ti.UI.createTab({\r\n\tbackgroundColor : 'green'\r\n});\r\n\r\nvar mainWin1 = Ti.UI.createWindow({\r\n\tbackgroundColor : 'yellow'\r\n});\r\n\r\nmainTab1.window = mainWin1; // ignored\r\n// mainTab1.setWindow(mainWin1); // runtime error\r\n\r\nmainTabGroup.addTab(mainTab1);\r\n\r\nvar mainTab2 = Ti.UI.createTab({\r\n\tbackgroundColor : 'red'\r\n});\r\n\r\nvar mainWin2 = Ti.UI.createWindow({\r\n\tbackgroundColor : 'blue'\r\n});\r\n\r\n// mainTab2.window = mainWin2; // ignored\r\nmainTab2.setWindow(mainWin2); // runtime error\r\n\r\nmainTabGroup.addTab(mainTab2);\r\n\r\nmainTabGroup.open();\r\n{code}\r\n\r\nActual Result:\r\n\r\nwindow property is ignored or setWindow method generates runtime error\r\n\r\nExpected Result:\r\n\r\nA tab group should open with colored tabs and colored windows.", "attachment": [], "flagged": false, "summary": "MobileWeb: Tab: window property not respected post-initialization", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.2.201208091718\r\nTitanium SDK: 2.1.0.GA, 2.1.1.GA, 2.1.2.v20120809183109\r\nOS: Mountain Lion\r\nBrowsers: Chrome 21.0.1180.57 ", "comment": { "comments": [ { "id": "213867", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note: windows do work at tab initialization.\r\n\r\nHere is sample work-around code:\r\n\r\n{code}\r\nvar mainTabGroup = Ti.UI.createTabGroup();\r\n\r\nvar mainWin1 = Ti.UI.createWindow({\r\n\tbackgroundColor : 'yellow'\r\n});\r\n\r\nvar mainTab1 = Ti.UI.createTab({\r\n\tbackgroundColor : 'green',\r\n\twindow : mainWin1\r\n});\r\n\r\nmainTabGroup.addTab(mainTab1);\r\n\r\nvar mainWin2 = Ti.UI.createWindow({\r\n\tbackgroundColor : 'blue'\r\n});\r\n\r\nvar mainTab2 = Ti.UI.createTab({\r\n\tbackgroundColor : 'red',\r\n\twindow : mainWin2\r\n});\r\n\r\nmainTabGroup.addTab(mainTab2);\r\n\r\nmainTabGroup.open(); \r\n{code}", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T14:22:11.000+0000", "updated": "2012-08-10T14:22:11.000+0000" }, { "id": "260733", "author": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "body": "This problem still exists, and now using alloy, I can not set the contents of the Window, unless its in my XML markup, I'm pretty sure this problem still exists.\r\n\r\neg, I can not set the window property of the tab to a [TiUIWindow] object - which works on both iOS and Android, in some instances I have to use the tab.setWindow method (which results in an error on Mobile Web)", "updateAuthor": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "created": "2013-07-03T09:53:28.000+0000", "updated": "2013-07-03T09:53:28.000+0000" }, { "id": "427209", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Mobile Web has been deprecated and will be removed in fixVersion 7.0.0.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-24T20:53:03.000+0000", "updated": "2017-08-24T20:53:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }