{ "id": "136095", "key": "TIMOB-17619", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-02-06T18:01:09.000+0000", "created": "2014-09-04T11:51:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.4.0", "regression" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-03-05T17:57:49.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": "The view flickers on device orientation change when the container window / view has a layout property. The flicker does not show on first orientation change but then on flickers on each change in orientation.\r\n\r\nThis is a Regression as the views did not flicker with SDK 3.3.0.GA\r\n\r\nSteps to Reproduce:\r\n1. Create an app with code below and launch it on a device\r\n2. Change the orientation of the device more than once.\r\n\r\nActual Result:\r\nThe blue view can be seen flickering and it shows the white background behind whenever the device orientation is changed.\r\n\r\nExpected Result:\r\nThe views should not flicker.\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n layout:'horizontal'\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\twidth : 100,\r\n\theight : 200,\r\n\tbackgroundColor : 'blue'\r\n});\r\nwin.add(view);\r\n\r\nvar view2 = Ti.UI.createLabel({\r\n\twidth : Ti.UI.FILL,\r\n\theight : 200,\r\n\tbackgroundColor : 'green',\r\n\ttextAlign : 'right',\r\n\ttext : 'TEST'\r\n});\r\nwin.add(view2);\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: The view flickers on orientation change when its container has a layout property", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.4.0.v20140903121714\r\nStudio: 3.4.0.201409032106\r\nCLI: 3.4.0-beta\r\nXcode: Xcode 6 Beta7\r\nDevices: iPhone 5S(v8.0 beta5), iPhone 4(v7.1.2)", "closedSprints": [ { "id": 330, "state": "closed", "name": "2015 Sprint 03 SDK", "startDate": "2015-01-31T01:00:05.245Z", "endDate": "2015-02-14T01:00:00.000Z", "completeDate": "2015-02-16T21:01:51.914Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "321877", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Looks like it its an iOS8 issue, I can confirm this bug with\r\nMac osx 10.9.4 Maverics\r\nAppcelerator Studio, build: 3.4.0.201409032106\r\nTitanium SDK, build: 3.4.0.v20140903121714\r\nacs@1.0.16\r\nalloy@1.5.0-dev (git://github.com/appcelerator/alloy.git#28af71f2e10ca61929443277176323ec8746ee14)\r\ninstall@0.1.7\r\nnpm@1.4.23\r\nsudo@1.0.3\r\ntitanium@3.4.0-dev (git://github.com/appcelerator/titanium.git#be6d7a682c881e42246a2d31caac931b5f694024)\r\ntitanium-code-processor@1.1.1\r\nXcode6-Beta7\r\nDevices: \r\niPhone 5S iOS 8.05b\r\niPad Air iOS 8.05b\r\n\r\nTested the above code on iPhone5c iOS7.1 for regression.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-04T18:47:45.000+0000", "updated": "2014-09-04T18:50:39.000+0000" }, { "id": "323409", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The root cause is the same as that reported in TIMOB-17394. iOS8 animations are additive.\r\n\r\nOur layout engine on iOS does a layout pass a few times each time correcting the position and size of the view (when layout is non-absolute). On rotation the whole system relays out with animation. I would expect the animations to finish and be removed from the layer once iOS lays out its subviews but they are not removed. So we are seeing this issue from the second rotation onwards. We can, of course, override this behavior and force remove all animations but that might have unintended side effects. Moving this to 3.4.1.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-12T19:25:36.000+0000", "updated": "2014-09-12T19:25:36.000+0000" }, { "id": "340831", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/6604", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-27T21:06:30.000+0000", "updated": "2015-01-27T21:06:30.000+0000" }, { "id": "340840", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Expanded test case\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n layout:'horizontal',\r\n orientationModes:[1,2,3,4]\r\n});\r\n \r\nvar view = Ti.UI.createView({\r\n width : 100,\r\n left:10,right:10,\r\n height : 200,\r\n backgroundColor : 'blue'\r\n});\r\nwin.add(view);\r\n \r\nvar view2 = Ti.UI.createLabel({\r\n width : Ti.UI.FILL,\r\n left:10,right:10,\r\n height : 200,\r\n backgroundColor : 'green',\r\n textAlign : 'right',\r\n text : 'TEST'\r\n});\r\nwin.add(view2);\r\n\r\nwin.addEventListener('postlayout', function(e){\r\n Ti.API.info('postlayout')\r\n});\r\n \r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-27T21:49:23.000+0000", "updated": "2015-01-27T21:49:23.000+0000" }, { "id": "345169", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nTitanium SDK 4.0.0.v20150303161012\r\nStudio 4.0.0.201502171827\r\nCLI 3.4.2-rc4\r\nXcode 6.2b5\r\n\r\nI do not see any flickering in either test case.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-05T17:57:49.000+0000", "updated": "2015-03-05T17:57:49.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }