[TIMOB-4274] iOS: searchHidden value does not stay when window containing scroll view is blurred/focused
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-10-03T18:06:18.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.5.0, Release 4.0.0 |
Components | iOS |
Labels | n/a |
Reporter | Matthew Apperson |
Assignee | Muhammad Dadu |
Created | 2011-06-01T08:46:13.000+0000 |
Updated | 2014-11-21T19:21:04.000+0000 |
Description
The use of searchHidden:true is losing its value in that once a window containing a table with this property is blurred, on return the search is displayed. Code example below:
Titanium.UI.setBackgroundColor('#fff');
var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({
title:'Tab 1'
});
var tab1 = Titanium.UI.createTab({
title:'Tab 1',
window:win1
});
var data = [{
title:'row 1'
}];
var s1 = Titanium.UI.createSearchBar();
var tb = Ti.UI.createTableView({
data:data,
search:s1,
searchHidden:true
});
win1.add(tb);
var win2 = Titanium.UI.createWindow({
title:'Tab 2'
});
var tab2 = Titanium.UI.createTab({
title:'Tab 2',
window:win2
});
var label2 = Titanium.UI.createLabel({
text:'I am Window 2'
});
win2.add(label2);
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
tabGroup.open();
Attachments
File | Date | Size |
---|---|---|
app.js | 2011-06-01T09:03:31.000+0000 | 656 |
PR: https://github.com/appcelerator/titanium_mobile/pull/6180 Refreshes the search controller on focus.
Verified the fix. The searchBar property searchHidden now retains its value after blur & then focus from another window. Closing. Environment: Appc Studio : 3.4.0.201409261245 Ti SDK : 3.5.0.v20141003114918 Mac OSX : 10.9.4 Alloy : 1.5.1 CLI - 3.4.0 Code Processor: 1.1.1 Iphone 6 - IOS 8.0.2