[TIMOB-26912] iOS: SearchBar with "showSearchBarInNavBar " flickers when closed while being in focus
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 8.0.0, Release 8.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | engSChedule |
Reporter | Hans Knöchel |
Assignee | Abir Mukherjee |
Created | 2019-03-19T08:42:24.000+0000 |
Updated | 2020-11-23T18:08:33.000+0000 |
Description
Noticed while testing TIMOB-26908: The search bar flickers if closed while being focussed. Test-case:
var window = Ti.UI.createWindow({
backgroundColor: '#fff'
});
var btn = Ti.UI.createButton({
title: 'Open Window'
});
btn.addEventListener('click', openWindow)
window.add(btn);
var nav = Ti.UI.createNavigationWindow({ window });
nav.open();
function openWindow() {
var win = Ti.UI.createWindow({ title: 'Sub Window' });
var search = Ti.UI.createSearchBar();
var listView = Ti.UI.createListView({ searchView: search, showSearchBarInNavBar: true });
win.add(listView);
nav.openWindow(win)
setTimeout(function () {
search.focus();
setTimeout(function() {
win.close();
}, 2000);
}, 2000);
}
No comments