Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15716] iOS: tabGroup window flickers on open if barImage or rightNavButton is set

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-03-02T20:48:19.000+0000
Affected Version/sRelease 3.1.3
Fix Version/sRelease 3.2.0, Release 4.0.0
ComponentsiOS
Labelsmodule_tabgroup, qe-3.5.0, qe-closed-3.3.0, qe-testadded, supportTeam, triage
ReporterMeenakshi Pathak
AssigneeVishal Duggal
Created2013-11-14T11:21:44.000+0000
Updated2015-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

FileDateSize
BlinkWindowTitle.zip2013-11-14T11:21:44.000+00007696650

Comments

  1. Prashant Sheth 2013-12-20

    I am seeing this issue as well. Even without the Tabgroup.
  2. Ingo Muschenetz 2014-02-05

    Based on Betty's comment, marking this as fixed in 3.2.0.
  3. Pragya Rastogi 2014-05-12

    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)
  4. Kajenthiran Velummaylum 2014-12-10

    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)
  5. Vishal Duggal 2015-03-02

    Fixed along with TIMOB-16121
  6. Ewan Harris 2015-03-12

    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.

JSON Source