{ "id": "77525", "key": "TIMOB-4599", "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": "2011-07-25T14:42:24.000+0000", "created": "2011-07-06T12:52:26.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11367", "description": "", "name": "Release 1.7.1", "archived": true, "released": true, "releaseDate": "2011-06-21" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "11754", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "76501", "key": "TIMOB-4449", "fields": { "summary": "Mapview Region ignored when mapview placed in tabgroup", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:35:22.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h1. Regression\r\nThe region of a map view in a tab group is no longer respected, so the initial view of a map view is always fully zoomed out (showing the whole world).\r\n\r\nh2. Reproduction\r\nDrop the following in an app.js. If you use 1.7.0 through the latest 1.8.0 builds with the iPhone Simulator, you will see the whole world. But use 1.6.2 and you will see a specific region.\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\r\nvar map = Ti.Map.createView({\r\n mapType: Ti.Map.STANDARD_TYPE,\r\n regionFit: true,\r\n region: { latitude: 60, longitude: 10.760797, latitudeDelta: 0.035, longitudeDelta: 0.035 }\r\n});\r\nwin.add(map);\r\n\r\nvar tabGroup = Ti.UI.createTabGroup();\r\ntabGroup.addTab(Ti.UI.createTab({\r\n window: win\r\n}));\r\ntabGroup.open();\r\n\r\n// WORKAROUND 1: Don't use a tab group (comment lines 9-13)\r\n//win.open();\r\n\r\n// WORKAROUND 2: Don't add the map to the window until the open event fires (comment line 7)\r\n//win.addEventListener('open', function() { win.add(map); });\r\n{code}\r\n\r\nh2. Workarounds\r\nThere are two workarounds documented in the code above. The first is to take out the tab groups; if you use a normal window, this bug doesn't manifest. The second is to wait to add the map to the window until after the window opens.\r\n\r\nh3. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-786764", "attachment": [], "flagged": false, "summary": "iOS Regression: MapView Region Doesn't Set in 1.7.0+", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": "All tests done in iPhone Simulator 4.3\r\nWORKS in 1.6.2\r\nBROKEN in 1.7.0\r\nBROKEN in 1.7.1\r\nBROKEN in 1.8.0 (07/05/11 15:46 ed29086...)\r\nWORKS on Android Epic 4G 2.2", "comment": { "comments": [ { "id": "410608", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:35:22.000+0000", "updated": "2017-03-09T21:35:22.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }