iOS: TableView search moving up and dimming stays
I have searched and made sure there are no existing issues for the issue I am filing
- [x] I have searched the existing issues
Description
const win = Ti.UI.createWindow({
title: 'Window',
//extendEdges: [Titanium.UI.EXTEND_EDGE_ALL],
//autoAdjustScrollViewInsets:true
});
var newData = Ti.UI.createTableViewRow({
title: 'element 1'
})
var newData2 = Ti.UI.createTableViewRow({
title: 'row 2'
})
var newData3 = Ti.UI.createTableViewRow({
title: 'item 3'
})
const table = Ti.UI.createTableView({
search: Ti.UI.createSearchBar(),
data: [newData, newData2, newData3]
});
win.add(table);
win.open();
TableView is acting strange in iOS26: when I click in the TableView search bar it will move up and the dimming area stays at the correct position. Then when I type it looks fine. Removing all text will show a fullscreen dim area above everything.
https://github.com/user-attachments/assets/d8371e2d-eadc-4262-a9ac-d0e50ae0c161
If I add extendSafeArea:false it looks like this:
it stays in place but the dimming area is pushed down.
Expected Behavior
search view staying inside the safe area, dimming area show go away when the text in the searchbar is removed.
Actual behavior
see video
Reproducible sample
Steps to reproduce
start the example, click in the search, type something, remove the search text with the back button
Platform
iOS
SDK version you are using
13.0.0.GA
Alloy version you are using
No response
TableView is acting strange in iOS26
iOS 17+18 are affected too. Under iOS 15+16 it works fine.
Edit: I see you already came across it 3 years ago → https://github.com/tidev/titanium-sdk/pull/13498#issuecomment-1172495975
iOS 15+16:
https://github.com/user-attachments/assets/1b359753-496e-4e3f-8a1a-218e641b9537
iOS 17+18:
https://github.com/user-attachments/assets/3ac9ce27-6ebc-479b-a5b5-628e1aa6ea19
I am also experiencing this behavior on iOS 26+. — Setting a fixed height (of 64pts) is not ideal but seems like a worthwhile hack to mention. Also, wrapping the SearchBar in a View with a fixed height (of 56pts) and clipping disabled seems to layout nicely on iPhone and prevent the 'jumping'...