{ "id": "85961", "key": "TIMOB-7613", "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": "12096", "description": "", "name": "Sprint 2012-04", "archived": true, "released": true, "releaseDate": "2012-02-26" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-14T23:35:17.000+0000", "created": "2012-02-03T16:28:08.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "barImage", "module_tabbedbar", "parity", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-03T22:56:26.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": "h4. Problem description\r\nWhen you create a tab with two windows with different barImages, you will get the first barImage in the second window as well, even if it has a different barImage defined. In the animation, the second barImage will show, producing an non desired color effect.\r\n\r\nh4. Actual results\r\nYou will only see the barImage defined in the first window.\r\n\r\nh4. Expected results\r\nEach window should have their own barImage shown.\r\n\r\nh4. Test case\r\nCreate a tabNavigation group with 1 tab.\r\nAdd a custom barImage to the main window.\r\nOpen a sub window with tabGroup.currentTab.open. That sub window contains a different barImage.\r\nThe correct bar image appears on 2nd window. Press back button\r\nThen navigate to the the second window AGAIN\r\nThis time the root window bar image is present and NOT the 2nd window bar image.\r\n\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\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n barImage:'nav_bg.png',\r\n tabBarHidden:true\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle:'open',\r\n\twidth:100,\r\n\theight:50\r\n});\r\n\r\nbutton.addEventListener('click', function() {\r\n\t//win2.open();\r\n\ttabGroup.activeTab.open( win2 );\r\n})\r\n\r\nwin1.add(button);\r\n\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff',\r\n barImage:'nav_bg_2.png',\r\n});\r\n\r\nvar tab1 = Titanium.UI.createTab({ \r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\n\r\ntabGroup.addTab(tab1); \r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}\r\n\r\nh4. Extra info\r\nThe attached project includes above code and two images. ", "attachment": [ { "id": "25729", "filename": "nav_bg_2.png", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-02-10T11:04:33.000+0000", "size": 10531, "mimeType": "image/png" }, { "id": "25730", "filename": "nav_bg.png", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-02-10T11:04:33.000+0000", "size": 9720, "mimeType": "image/png" }, { "id": "25459", "filename": "testTabBug.zip", "author": { "name": "mattbryson", "key": "mattbryson", "displayName": "Matt Bryson", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-03T17:17:42.000+0000", "size": 1674283, "mimeType": "application/zip" } ], "flagged": false, "summary": "Custom barImage with Tab sub navigation displays previous barImage, not the current window barImage", "creator": { "name": "mattbryson", "key": "mattbryson", "displayName": "Matt Bryson", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "mattbryson", "key": "mattbryson", "displayName": "Matt Bryson", "active": true, "timeZone": "Europe/London" }, "environment": "Titanium SDK version: 1.8.0.1, 1.8.1, 1.9CI\r\nPlatform & version: iOS 5.0 \r\nDevice Details: iOS simulator\r\nHost Operating System: OSX Lion \r\nTitanium Studio version: 1.0.8", "comment": { "comments": [ { "id": "181635", "author": { "name": "mattbryson", "key": "mattbryson", "displayName": "Matt Bryson", "active": true, "timeZone": "Europe/London" }, "body": "I have added a sample project that does this, in fact, in the sample its worse, it shows the 2nd bar image as the window animates on, and then reverts to the first one.", "updateAuthor": { "name": "mattbryson", "key": "mattbryson", "displayName": "Matt Bryson", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-03T17:17:42.000+0000", "updated": "2012-02-03T17:17:42.000+0000" }, { "id": "182757", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "The barImages for the example", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-02-10T11:04:33.000+0000", "updated": "2012-02-10T11:04:33.000+0000" }, { "id": "182932", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/1406", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-13T11:36:21.000+0000", "updated": "2012-02-13T11:36:21.000+0000" }, { "id": "182991", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 1.0.8.201201262211\r\nTi Mob SDK 1.9.0.v20120212011634\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.0.1\r\n\r\nVerified that the expected results are shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-13T16:23:37.000+0000", "updated": "2012-02-13T16:23:37.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }