{ "id": "101573", "key": "TIMOB-11015", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-26T08:35:35.000+0000", "created": "2012-09-20T03:19:50.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-ios090112" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T18:45:56.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": "While changing orientation from landscape to portrait, view does not resize smoothly whereas it resizes smoothly while changing the orientation from portrait to landscape.\r\n\r\nSteps to reproduce:\r\n1. create a test app using the code below.\r\n2. launch the test app.\r\n3. Click 'press me' button.\r\n4. Now change the orientation to landscape. Red and blue view should resize smoothly.\r\n5. Now change the orintation to portrait. Red and blue view resize again.\r\n\r\nActual:\r\n5. Red and blue view do not resize smoothly. Change in size is noticable.\r\n\r\nExpected:\r\nResizing of view should be smooth.\r\n\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({ \r\n\t backgroundColor:'#fff'\r\n});\r\n\t\r\n\t\tvar btn = Ti.UI.createButton({\r\n\t\t\twidth: 70,\r\n\t\t\theight: 70,\r\n\t\t\ttitle: 'press me',\r\n\t\t\tcolor: 'black'\r\n\t\t});\r\n\t\t\r\n\t\twin1.add(btn);\r\n\t\t\r\n\t\tbtn.addEventListener('click', function() {\r\n\t\t\t\r\n\t\t\tvar abtn = Ti.UI.createButton({\r\n\t\t\twidth: 40,\r\n\t\t\theight: 40,\r\n\t\t\ttitle: 'close',\r\n\t\t\tcolor: 'black'\r\n\t\t});\r\n\t\t\t\r\n\t\t\tvar wnd = Ti.UI.createWindow({\r\n\t\t\t\ttitle : \"Title Bar\",\r\n\t\t\t\tmodal : true,\r\n\t\t\t\tbackgroundColor : \"#FFF\",\r\n\t\t\t\torientationModes : [Titanium.UI.PORTRAIT, Titanium.UI.UPSIDE_PORTRAIT, Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT],\r\n\t\t\t\tlayout : \"vertical\"\r\n\t\t\t});\r\n\t\t\tvar view = Ti.UI.createView({\r\n\t\t\t\tbackgroundColor : \"#F00\",\r\n\t\t\t\theight : 200\r\n\t\t\t});\r\n\t\t\tvar view2 = Ti.UI.createView({\r\n\t\t\t\tbackgroundColor : \"#00F\",\r\n\t\t\t\theight : 216\r\n\t\t\t});\r\n\t\t\tvar text = Ti.UI.createTextArea({\r\n\t\t\t\tbackgroundColor : \"#0F0\",\r\n\t\t\t\tsuppressReturn : false\r\n\t\t\t});\r\n\r\n\t\t\tview.add(text);\r\n\t\t\twnd.add(view);\r\n\t\t\twnd.add(view2);\r\n\t\t\tview.add(abtn)\r\n\t\t\twnd.open();\r\n\r\n abtn.addEventListener('click', function() {\r\n \t wnd.close();\r\n });\r\n\r\n\t\t\tTi.Gesture.addEventListener(\"orientationchange\", function(event) {\r\n\t\t\t\tview.height = 200;\r\n\t\t\t\tview2.height = 216;\r\n\t\t\t\tif(event.orientation === Ti.UI.LANDSCAPE_LEFT || event.orientation === Ti.UI.LANDSCAPE_RIGHT) {\r\n\t\t\t\t\tview.height = 106;\r\n\t\t\t\t\tview2.height = 162;\r\n\t\t\t\t}\r\n\t\t\t}); \r\n\t\t\t\r\n\t\t});\r\n\twin1.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Orientation - While changing orientation from landscape to portrait, view does not resize smoothly.", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 2.1.3.v20120918170114\r\nStudio:2.1.2.201208301612\r\nDevices: iPad2(v 5.1)\r\nOS: OSX 10.8", "comment": { "comments": [ { "id": "244101", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPhone Simulator: iOS SDK version: 5.1,6.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T08:35:35.000+0000", "updated": "2013-06-20T13:51:03.000+0000" }, { "id": "413594", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:45:56.000+0000", "updated": "2017-03-17T18:45:56.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }