[TIMOB-6867] iOS: UI - TableView searchBar does not have default barColor
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 1.7.5 |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | n/a |
| Reporter | Sindre Sorhus |
| Assignee | Ingo Muschenetz |
| Created | 2011-11-23T07:03:49.000+0000 |
| Updated | 2014-06-18T22:38:13.000+0000 |
Description
Problem
The TableView searchBar doesn't have a default barColor in iOS 4.3, although it does in iOS 5.Test case
Ti.UI.setBackgroundColor('#000');
var tabGroup = Titanium.UI.createTabGroup();
var win = Titanium.UI.createWindow({
title: 'title',
tabBarHidden: true
});
var tab = Titanium.UI.createTab({
window: win
});
tabGroup.addTab(tab);
tabGroup.open();
var searchBar = Ti.UI.createSearchBar();
var table = Ti.UI.createTableView({
search: searchBar
});
win.add(table);
Attachments
| File | Date | Size |
|---|---|---|
| 4.3.png | 2011-11-23T07:03:49.000+0000 | 151454 |
| 5.0.png | 2011-11-23T07:03:49.000+0000 | 151654 |
Sindre Thank you for raising this ticket. While it is very well formed, the test case could be improved by using a simple window rather than tabs. As each ticket must be limited to a single issue, I have removed the part about the missing barColor property. That said, there is an existing ticket relating to it at TIMOB-2670 I will move this to the main project now. Cheers
Can't really do that, since the problem isn't apparent when using just a window:
var win = Ti.UI.createWindow(); win.add(Ti.UI.createTableView({ search: Ti.UI.createSearchBar() })); win.open();