{ "id": "133819", "key": "TIMOB-17466", "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": null, "resolutiondate": null, "created": "2014-07-28T19:06:42.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "TCSupport", "ios" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:05.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. Problem Description\r\nThe problem is simple: when I try to close a view with the focus of another tab and then back to the main tab , you can see the previous view for a few milliseconds\r\n\r\nexplanatory video attached\r\n\r\nh4. Steps to reproduce\r\n- Create a new mobile project (classic titanium)\r\n- Add the following code (into app.js). \r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup({\r\n\tvisible : false\r\n});\r\n\r\ntabGroup.addEventListener(\"focus\" , function(e){\r\n\t\r\n\tif (view_test.opacity == 1 && tabGroup.visible) {\r\n\t\tview_test.top = Ti.Platform.displayCaps.platformHeight;\r\n\t}\r\n\t\r\n});\r\n\r\n\r\n\r\n\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\nvar view_test = Ti.UI.createView({\r\n\twidth : 320,\r\n\theight : Ti.Platform.displayCaps.platformHeight,\r\n\tbackgroundColor : \"black\",\r\n\topacity : 1,\r\n\ttop : Ti.Platform.displayCaps.platformHeight\r\n});\r\n\r\nvar label_test = Ti.UI.createLabel({\r\n\ttext : \"Close\",\r\n\tcolor : \"white\"\r\n});\r\nview_test.add(label_test);\r\n\r\nlabel1.addEventListener(\"click\",function(e){\r\n\t\r\n\tview_test.animate({\r\n\t\ttop : 0,\r\n\t\tduration : 300\r\n\t});\r\n\t\r\n});\r\nlabel_test.addEventListener(\"click\",function(e){\r\n\t\r\n\tview_test.animate({\r\n\t\topacity : 0,\r\n\t\tduration : 300\r\n\t});\r\n\tsetTimeout(function(e) {\r\n\t\tview_test.animate({\r\n\t\t\topacity : 1,\r\n\t\t\tduration : 300\r\n\t\t});\r\n\t\tview_test.top = Ti.Platform.displayCaps.platformHeight;\r\n\t}, 300);\r\n\t\r\n});\r\n\r\nwin1.add(view_test);\r\n\r\n\r\n\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\ntabGroup.open();\r\n\r\n\r\nsetTimeout(function(e){\r\n\ttabGroup.visible = true;\r\n},2000);\r\n\r\n{code}", "attachment": [ { "id": "50090", "filename": "video test.mov", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2014-07-28T19:07:40.000+0000", "size": 832948, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "[iOS] TabGroup Event : Problem with the refresh of Components after a focus of Tab", "creator": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "environment": "Titanium Studio, build: 3.3.0.201407100905 , xCode 5.1.1 , CLI version 3.3.0, Titanium SDK version 3.3.0.GA\r\n Titanium SDK: 3.3.0.GA\r\n Titanium CLI: 3.3.0\r\n OS X Version: 10.9.3\r\n Xcode 5.1.1\r\n iOS 7.1.1\r\n\r\n", "comment": { "comments": [ { "id": "317270", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "no one has yet performed some test?", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2014-08-06T12:32:01.000+0000", "updated": "2014-08-06T12:32:01.000+0000" }, { "id": "317389", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Thanks for your report! The Platform team will be setting the priority on this one. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-06T22:12:56.000+0000", "updated": "2014-08-06T22:12:56.000+0000" }, { "id": "320522", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue still exists with SDK Version 3.3.0 and 3.4.0\r\n\r\nTitanium Command-Line Interface, \r\nCLI version 3.3.0, \r\nTitanium SDK version 3.3.0.GA \r\nTitanium SDK version 3.4.0.GA \r\nAppcelerator Studio, build: 3.3.0.201407111535 \r\niOS SDK: 7.1 \r\niOS iPhone Simulator: 7.1", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-27T06:10:27.000+0000", "updated": "2014-08-27T06:10:27.000+0000" }, { "id": "333247", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": " Issue still exists with SDK Version 3.4.1", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2014-11-21T18:46:45.000+0000", "updated": "2014-11-21T18:46:45.000+0000" }, { "id": "365071", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "+1", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-09-28T08:24:27.000+0000", "updated": "2015-09-28T08:24:27.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }