From 7b3404297548b74e786fd666f4e86bd7dc772a94 Mon Sep 17 00:00:00 2001 From: wutschel Date: Mon, 13 May 2024 08:30:46 +0200 Subject: [PATCH] Use correct width for searchbar The searchbar needs to use the the view's bounds width. --- XBMC Remote/DetailViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XBMC Remote/DetailViewController.m b/XBMC Remote/DetailViewController.m index 8a61518b8..ce46afbd4 100644 --- a/XBMC Remote/DetailViewController.m +++ b/XBMC Remote/DetailViewController.m @@ -2185,7 +2185,7 @@ - (UISearchBar*)createFakeSearchbarInDark:(BOOL)isDark { // Create non-used search controller. This is added as tableHeaderView and lets iOS gracefully handle insets UISearchController *searchCtrl = [[UISearchController alloc] initWithSearchResultsController:nil]; searchCtrl.searchBar.showsCancelButton = YES; - searchCtrl.searchBar.frame = self.searchController.searchBar.frame; + searchCtrl.searchBar.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), CGRectGetHeight(self.searchController.searchBar.frame)); searchCtrl.searchBar.searchBarStyle = UISearchBarStyleMinimal; searchCtrl.searchBar.barStyle = UIBarStyleBlack; searchCtrl.searchBar.autoresizingMask = UIViewAutoresizingFlexibleWidth;