         searchPlaceholderView.addSubview(searchController.searchBar)
     }
     
+    override func willTransition(to newCollection: UITraitCollection, with coordinator: UIViewControllerTransitionCoordinator) {
+        super.willTransition(to: newCollection, with: coordinator)
+        
+        coordinator.animate(alongsideTransition: { (context) in
+            self.searchController.searchBar.frame.size.width = self.searchPlaceholderView.frame.size.width
+        }, completion: nil)
+    }
+    
     override var preferredStatusBarStyle: UIStatusBarStyle {
         return .lightContent
     }

        super.viewWillAppear(animated)
        
        navigationController?.setNavigationBarHidden(true, animated: animated)       
    }
    
    override func viewWillDisappear(_ animated: Bool) {

        if let championsCell = cell as? ChampionsCell {
            
            let championVM = filtered[indexPath.item]
            championsCell.portraitImageView.af_setImage(withURL: championVM.imageUrl)
        }
        
