{ "id": "105250", "key": "TIMOB-11830", "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:24:00.000+0000", "created": "2012-11-20T11:17:41.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:38.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": "h1. Problem description\r\nWhen opening different windows with different values for the navBarHidden property (e.g. first window has navBarHidden true, second window does not), the bottom property fails to be correctly calculated in the second window.\r\n\r\nh1. Steps to reproduce\r\n\r\nUse this code to see the issue:\r\n\r\n{code}\r\nvar firstWin = Ti.UI.createWindow({\r\n navBarHidden : true, //comment out this line and the problem goes away\r\n modal : true\r\n});\r\n\r\nvar navGroup = Ti.UI.MobileWeb.createNavigationGroup({\r\n window: firstWin\r\n});\r\n\r\nvar secondWin = Ti.UI.createWindow();\r\nvar button = Ti.UI.createButton({\r\n title : 'This is below the bottom of the screen',\r\n height : '10%',\r\n bottom : 0,\r\n width : Ti.UI.FILL\r\n});\r\nsecondWin.add(button);\r\n\r\nvar goButton = Ti.UI.createButton({\r\n title : \"go to second page\"\r\n});\r\ngoButton.addEventListener('click', function() {\r\n navGroup.open(secondWin);\r\n});\r\nfirstWin.add(goButton);\r\n\r\nvar containerWin = Ti.UI.createWindow();\r\ncontainerWin.add(navGroup);\r\ncontainerWin.open();\r\n{code}\r\n\r\nWhen clicking on the button in the first window, the second is open correctly, the navBar is shown, but the button is below the screen.\r\n\r\nResizing the window at that point solves the issue.", "attachment": [], "flagged": false, "summary": "MobileWeb: 'bottom' property not properly set switching between windows with different \"navBarHidden\" values.", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "MobileWeb\r\nSDK GA 2.1.1 - 2.1.4\r\nSDK CI 3.0.0", "comment": { "comments": [ { "id": "422891", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving 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-26T22:24:00.000+0000", "updated": "2017-06-26T22:24:00.000+0000" }, { "id": "436449", "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:38.000+0000", "updated": "2018-04-04T23:20:38.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }