New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-25358](6_3_X):iOS Problem with Searchbar, SDK 6.2.0 and later #9496
Conversation
iphone/Classes/TiUITableView.m
Outdated
@@ -1639,7 +1639,8 @@ -(void)updateSearchView | |||
|
|||
if (tableHeaderView == nil) | |||
{ | |||
CGRect wrapperFrame = CGRectMake(0, 0, [tableview bounds].size.width, TI_NAVBAR_HEIGHT); | |||
CGFloat wrapperHeight = [TiUtils isIOS11OrGreater] ? 56.0 : 44.0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No hardcoded Values please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean I should use macro for same similar to previous implementation ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. Or if possible get the height from the actual parent frame. Hardcoded values are the worst, we should try to avoid it at any time.
…358_6_3_X # Conflicts: # iphone/Classes/TiUIListView.m # iphone/Classes/TiUITableView.m
…358_6_3_X # Conflicts: # iphone/Classes/TiUIListView.m # iphone/Classes/TiUITableView.m
FR Passed. Searchbar search results correctly appear on top of the view and not shifted to the side. Tested using the test cases and the searchbar suite. |
https://jira.appcelerator.org/browse/TIMOB-25358