Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26912] iOS: SearchBar with "showSearchBarInNavBar " flickers when closed while being in focus

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 8.0.0, Release 8.1.0
Fix Version/sn/a
ComponentsiOS
LabelsengSChedule
ReporterHans Knöchel
AssigneeAbir Mukherjee
Created2019-03-19T08:42:24.000+0000
Updated2020-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);
}

Comments

No comments

JSON Source