Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3321] iOS: Tab touchEnabled not recognized

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Do
Resolution Date2020-01-09T18:51:48.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsdefect, ios, ipad, rplist, tab, touch
ReporterAlan Leard
AssigneeEric Merriman
Created2011-04-15T03:42:08.000+0000
Updated2020-01-09T18:51:48.000+0000

Description

Problem

In an effort to adjust spacing between tabs (specifically on an iPad) users would like to put in blank tabs with no touch events. In the documentation we have a touchEnabled: false property that does not work.

Test Code

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 win2 = Titanium.UI.createWindow({  
    title:'Tab 2',
    backgroundColor:'#fff'
});
var tab2 = Titanium.UI.createTab({  
    icon:'KS_nav_ui.png',
    title:'Tab 2',
    window:win2,
    width:200
});
var tab3 = Titanium.UI.createTab({  
    touchEnabled:false
});
var tab4 = Titanium.UI.createTab({  
    touchEnabled:false
});
tabGroup.addTab(tab1);  
tabGroup.addTab(tab3);  
tabGroup.addTab(tab4);   
tabGroup.addTab(tab2);
tabGroup.open();

Ticket Reference http://developer.appcelerator.com/helpdesk/view/76410">http://developer.appcelerator.com/helpdesk/view/76410

Comments

  1. Tim Poulsen (ACV) 2016-09-09

    We have a need to block tab switching while content is being loaded. I can confirm that setting the related TabGroup's touchEnabled property to false on Android does nothing either. Users can still switch tabs.
  2. Alan Hutton 2020-01-09

    It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. Updating, or creating code may not reproduce the issue reported, or be a valid test case. If community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.

JSON Source