[TIMOB-15716] iOS: tabGroup window flickers on open if barImage or rightNavButton is set
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-03-02T20:48:19.000+0000 |
Affected Version/s | Release 3.1.3 |
Fix Version/s | Release 3.2.0, Release 4.0.0 |
Components | iOS |
Labels | module_tabgroup, qe-3.5.0, qe-closed-3.3.0, qe-testadded, supportTeam, triage |
Reporter | Meenakshi Pathak |
Assignee | Vishal Duggal |
Created | 2013-11-14T11:21:44.000+0000 |
Updated | 2015-03-12T18:33:50.000+0000 |
Description
While opening new window from tab group with navigation bar,a blink is seen in the new window title for a while.
In case If we don't set rightnav button or barImage this flicker in the title is not seen.
*Steps To Reproduce* :
1.Copy and paste the below code in the newly created project:
var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win1
});
var btn=Ti.UI.createButton({
title:'Details'
});
var newWin=Ti.UI.createWindow({
title:'I am Window 1',
backgroundColor:'red',
barImage:'KS_nav_ui.png',
rightNavButton:btn
});
var label1 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 1',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win1.add(label1);
label1.addEventListener('click',function(){
tab1.open(newWin);
});
var win2 = Titanium.UI.createWindow({
title:'Tab 2',
backgroundColor:'#fff'
});
var tab2 = Titanium.UI.createTab({
icon:'KS_nav_ui.png',
title:'Tab 2',
window:win2
});
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
tabGroup.open();
2. Run the application and *Click on the label of first Tab*.
*Expected result* :A new Window should open with no flicker on its title.
*Actual result* :
1. *Classic Titanium* : New window opened with flicker on its title only when *both* BarImage and
rightNavButton are set.
2. *Alloy* : New window opened with flicker on its title if either BarImage or rightNavButton are set.
*Note* : Please find attached alloy project to reproduce the issue.
Attachments
File | Date | Size |
---|---|---|
BlinkWindowTitle.zip | 2013-11-14T11:21:44.000+0000 | 7696650 |
I am seeing this issue as well. Even without the Tabgroup.
Based on Betty's comment, marking this as fixed in 3.2.0.
Verified the fix with: OSX: 10.9.2 Xcode: 5.1.1 Studio - 3.3.0.201405080918 SDK -3.3.0.v20140509180608 acs-1.0.14 alloy-1.4.0-dev npm-1.3.2 titanium-3.3.0-dev titanium-code-processor-1.1.1 & LG-P970 (4.0.4) Device: iPhone 5c (7.1.1)
Reopening the ticket. Issue is *reproducible again* with following environment. Test Environment: Titanium SDK: 3.5.0.v20141208122514 Appc-Studio: 3.4.1 GA Titanium CLI: 3.4.1 GA Alloy : 1.5.1 GA Xcode : 6.1 OS: OSX 10.10.1 Device : iPhone 6plus (iOS 8.1)
Fixed along with TIMOB-16121
Verified fix on: Mac OSX 10.10.2 Appcelerator Studio, build: 4.0.0.201502171827 Titanium SDK build: 4.0.0.v20150312095013 Titanium CLI, build: 3.5.0-dev Alloy: 1.6.0-alpha Xcode 6.2 iPhone 5 (8.1), iPhone 6 (8.2) Using the test case provided built to both devices, the window no longer flickers. Closing ticket.