{ "id": "88024", "key": "TIMOB-8037", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-17T16:25:57.000+0000", "created": "2012-03-15T12:36:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-mw020912", "qe-port" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-15T16:39:27.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": "Steps to reproduce:\r\n\r\n1. Create a default mobile web project and change to app.js code to the following \r\n{code}\r\n\t\tvar _window = Titanium.UI.createWindow({\r\n\t\t\ttitle : 'test',\r\n\t\t\tbackgroundColor : 'white'\r\n\t\t});\r\n\r\n\r\n_window.orientationModes = [Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT, Ti.UI.UPSIDE_PORTRAIT];\r\n\t\tvar v1 = Ti.UI.createView({\r\n\t\t\tbackgroundColor : '#f00',\r\n\t\t\twidth : '30%',\r\n\t\t\tleft : '20%',\r\n\t\t\ttop : 0,\r\n\t\t\theight : '100%'\r\n\t\t});\r\n\r\n\t\tvar v3 = Ti.UI.createView({\r\n\t\t\tbackgroundColor : 'blue',\r\n\t\t\twidth : '80%',\r\n\t\t\tleft : '10%',\r\n\t\t\ttop : '10%',\r\n\t\t\theight : '80%'\r\n\t\t});\r\n\r\n\t\tvar v5 = Ti.UI.createView({\r\n\t\t\tbackgroundColor : 'gray',\r\n\t\t\twidth : '60%',\r\n\t\t\tleft : '20%',\r\n\t\t\ttop : '10%',\r\n\t\t\theight : '80%'\r\n\t\t});\r\n\r\n\t\tv3.add(v5);\r\n\t\tv1.add(v3);\r\n\t\t_window.add(v1);\r\n\r\n\t\tvar v2 = Ti.UI.createView({\r\n\t\t\tbackgroundColor : '#0f0',\r\n\t\t\twidth : '30%',\r\n\t\t\tright : '20%',\r\n\t\t\ttop : 0,\r\n\t\t\theight : '100%'\r\n\t\t});\r\n\r\n\t\tvar v4 = Ti.UI.createView({\r\n\t\t\tbackgroundColor : 'blue',\r\n\t\t\twidth : '80%',\r\n\t\t\tleft : '10%',\r\n\t\t\ttop : '10%',\r\n\t\t\theight : '80%'\r\n\t\t});\r\n\r\n\t\tvar v6 = Ti.UI.createView({\r\n\t\t\tbackgroundColor : 'gray',\r\n\t\t\twidth : '60%',\r\n\t\t\tleft : '20%',\r\n\t\t\ttop : '10%',\r\n\t\t\theight : '80%'\r\n\t\t});\r\n\r\n\t\tv4.add(v6);\r\n\t\tv2.add(v4);\r\n\t\t_window.add(v2);\r\n_window.open();\r\n{code}\r\n\r\n2. Run the app\r\n3. Rotate the device through all landscape and portrait orientations\r\n\r\nActual result:\r\nAfter rotating from portrait to landscape then back to landscape the views are drawn at a different location\r\n\r\nExpected result:\r\nThe views are redrawn at the same location as they were originally", "attachment": [], "flagged": false, "summary": "MobileWeb: View - Rotating views causes the view to be redisplayed which results in subviews being redrawn in different locations than they were originally", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Ti Studio build 2.0.0.201203132050\r\nTi Mob SDK 2.0.0.v20120315091738 hash rec1c5584\r\nOSX Lion 10.7.3\r\niPad 1 OS 4.3.5, Galaxy Tab 10.1 OS 3.0", "comment": { "comments": [ { "id": "186951", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1724", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-17T14:17:04.000+0000", "updated": "2012-03-17T14:17:04.000+0000" }, { "id": "214695", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fix on:\r\nTitanium studio : 2.1.1.201207271312\r\nSDK version : 2.2.0.v20120814134112\r\nAndroid 4.0.4 - default ,chrome 18.0 , firefox 14.0.1\r\nIphone 5.1.1 - safari mobile\r\n", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-15T16:39:27.000+0000", "updated": "2012-08-15T16:39:27.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }