{ "id": "100558", "key": "TIMOB-10798", "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-26T19:09:36.000+0000", "created": "2012-09-06T11:20:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:39.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 Titanium.UI.Window.open() parameters are accepted and applied on the Android and iOS platforms. On the Mobile Web platform, they are ignored but work with Ti.UI.createWindow(). See code below for accepted parameters. Some are platform specific.\r\n\r\nReproduction:\r\nRun the sample code below for the mobile web platform--either browser or emulator.\r\n\r\nExpected Results:\r\nMobile Web platform should accept the parameters in the open method and apply them.\r\n\r\nActual Results:\r\nRunning on the emulator, either the parameters are ignored or the browser displays 'File /index.html not found' depending if other parameters are defined.\r\n\r\nRunning on the browser, the parameters are ignored.\r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n width: '100%',\r\n height: '100%',\r\n backgroundColor: 'white'\r\n});\r\nvar btn1 = Ti.UI.createButton({\r\n top: 0,\r\n left: 0,\r\n width: 100,\r\n height: 50,\r\n title: 'open'\r\n});\r\nbtn1.addEventListener('click', openWindow);\r\nwin1.add(btn1);\r\nwin1.open();\r\n \r\nfunction openWindow() {\r\n var win2 = Ti.UI.createWindow({\r\n backgroundColor: 'red',\r\n \t\torientation: Ti.UI.LANDSCAPE_LEFT,\r\n });\r\n \r\n\tvar btn2 = Ti.UI.createButton({\r\n\t top: 0,\r\n\t left: 0,\r\n\t width: 100,\r\n\t height: 50,\r\n\t title: 'close'\r\n\t});\r\n\r\n\tbtn2.addEventListener('click', function(e){\r\n\t\twin2.close();\r\n\t});\r\n\twin2.add(btn2);\r\n\r\n win2.open({\r\n\t\twidth: 250,\r\n\t\theight: 250,\r\n\t\tmodal: true \r\n });\r\n //Other parameters\r\n \t//navBarHidden: true,\r\n \t//animated: false,\r\n \t//modal: true,\r\n \t//fullscreen: true,\r\n \t//top:25,\r\n \t//left:25,\r\n \t//right:25,\r\n \t//bottom:25,\r\n \t//width: 250,\r\n \t//height: 250,\r\n \t//transition: Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT, // - ios only\r\n \t//modalStyle: Titanium.UI.iPhone.MODAL_PRESENTATION_FULLSCREEN, // - ios only\r\n \t//modalTransitionStyle: Titanium.UI.iPhone.MODAL_TRANSITION_STYLE_CROSS_DISSOLVE, // - ios only \r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: Titanium.UI.Window.open parameters ignored on Mobile Web platform", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Mobile v2.1.2.GA\r\nMac OSX v 10.7.5\r\nChrome v21.0.1180.89\r\nAndroid Emulator w/ Google API 8 or v2.2", "comment": { "comments": [ { "id": "422797", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Marking ticket as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T19:09:36.000+0000", "updated": "2017-06-26T19:09:36.000+0000" }, { "id": "436461", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:39.000+0000", "updated": "2018-04-04T23:20:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }