{ "id": "105769", "key": "TIMOB-11912", "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": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14700", "description": "2012 Sprint 25", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "14785", "description": "2012 Sprint 25 JS", "name": "2012 Sprint 25 JS", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-12T02:03:55.000+0000", "created": "2012-11-30T20:21:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "qe-port" ], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" } ], "issuelinks": [], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-01T12:21:57.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": "h6.Issue\r\nUsing a mapView to display locations on map, when I open the map the first time it comes fine. But, when I try to access the map second time, the map does not come as expected, instead it comes as a cropped image. \r\n\r\nh6.Actual result\r\nIt covers only few portion of the screen (usually top-left). This image is draggable and can be moved on the screen. \r\n\r\nOn zooming also, I am not able to get the exact position of my location pins.\r\n\r\nh6.Tested on\r\nBrowsers - Safari 6.0.2\r\n\r\nh6.Steps to reproduce\r\n1. Click on Open\r\n2. Go back\r\n3. Repeat steps 1 & 2 - note a cropped map - as seen as image attached \r\n\r\nh6.Repro sequence\r\n{code}\r\nfunction RootWindow() {\r\n\tvar win = Ti.UI.createWindow({\r\n\t\tbackgroundColor : '#ccc'\r\n\t});\r\n\r\n\tvar btn = Ti.UI.createButton({\r\n\t\ttitle : 'Open Map'\r\n\t});\r\n\r\n\twin.add(btn);\r\n\r\n\tbtn.addEventListener('click', function() {\r\n\t\tvar map = MapWindow();\r\n\t\tNav.open(map)\r\n\t});\r\n\r\n\treturn win;\r\n}\r\n\r\nfunction MapWindow() {\r\n\tvar win = Ti.UI.createWindow({\r\n\t\tbackgroundColor : 'white'\r\n\t});\r\n\tvar map = Ti.Map.createView({\r\n\t\tregion : {\r\n\t\t\tlatitude : 10,\r\n\t\t\tlongitude : 10\r\n\t\t},\r\n\t\twidth : Ti.UI.FILL,\r\n\t\theight : Ti.UI.FILL\r\n\t});\r\n\twin.add(map);\r\n\treturn win;\r\n}\r\n\r\nfunction NavigationGroup(_rootWindow) {\r\n\tvar win = Ti.UI.createWindow();\r\n\r\n\tvar nav = Titanium.UI.MobileWeb.createNavigationGroup({\r\n\t\twindow : _rootWindow\r\n\t});\r\n\r\n\twin.add(nav);\r\n\r\n\tthis.open = function(_win) {\r\n\t\tif (_win) {\r\n\t\t\tnav.open(_win, {\r\n\t\t\t\tanimated : true\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\twin.open();\r\n\t\t}\r\n\t}\r\n}\r\n\r\nvar Nav = new NavigationGroup(RootWindow());\r\nNav.open(); \r\n{code}", "attachment": [ { "id": "33819", "filename": "CroppedImageMapView1.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-30T20:21:49.000+0000", "size": 818765, "mimeType": "image/png" }, { "id": "33820", "filename": "CroppedImageMapView2.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-30T20:21:49.000+0000", "size": 97202, "mimeType": "image/png" }, { "id": "34054", "filename": "Screen Shot 2012-12-10 at 5.07.10 PM.png", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-11T01:12:49.000+0000", "size": 40638, "mimeType": "image/png" } ], "flagged": false, "summary": "MobileWeb: Unable to open map correctly second time", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Platform OS: Mobile Web (HTML5)\r\nAll Titanium SDKs", "comment": { "comments": [ { "id": "230753", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/3565", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-11T00:07:56.000+0000", "updated": "2012-12-11T00:07:56.000+0000" }, { "id": "230776", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-11T01:12:26.000+0000", "updated": "2012-12-11T01:14:36.000+0000" }, { "id": "230796", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This issue has not been fixed. The pull request has been reverted.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-12-11T04:19:56.000+0000", "updated": "2012-12-11T04:19:56.000+0000" }, { "id": "230962", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/3577", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-11T23:39:39.000+0000", "updated": "2012-12-11T23:39:39.000+0000" }, { "id": "231709", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/3613", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-17T19:55:23.000+0000", "updated": "2012-12-17T19:55:23.000+0000" }, { "id": "233646", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "This is still happening with master. Shall I reopen? ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-01-08T18:43:46.000+0000", "updated": "2013-01-08T18:43:46.000+0000" }, { "id": "233660", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "@Mauro I just re-tested the test case provided in this ticket with master and it most certainly works in Chrome (Mac), Android 4.1 browser, and iOS 6. What browser are you seeing issues? Is the test case still the same?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-01-08T22:59:32.000+0000", "updated": "2013-01-08T22:59:32.000+0000" }, { "id": "240254", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It does work with:\r\nTitanium Studio, build: 3.0.2.201302191606\r\nTitanium Studio, build: 3.0.2.GA\r\nTitanium Studio, build: 3.1.0.v20130227145654\r\nMac osx 10.8.2 Mountain Lion\r\nChrome 24.0.13\r\nSafari 6.0.2\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T21:31:11.000+0000", "updated": "2013-02-28T21:31:41.000+0000" }, { "id": "240347", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTitanium SDK: 3.1.0.v20130226024607\r\nTitanium SDK: 3.0.2.GA\r\nTitanium  Studio:3.0.2.201302141201\r\nMac osx 10.8 Mountain Lion\r\nChrome 23.0.1271.101\r\nSafari 6.0", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-01T12:21:57.000+0000", "updated": "2013-03-01T12:21:57.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }