Skip to content

Instantly share code, notes, and snippets.

@thebnich
Created July 28, 2015 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thebnich/eafbba0acd9a7eab4c25 to your computer and use it in GitHub Desktop.
Save thebnich/eafbba0acd9a7eab4c25 to your computer and use it in GitHub Desktop.
diff --git a/Client/Frontend/Browser/BrowserViewController.swift b/Client/Frontend/Browser/BrowserViewController.swift
index 83ae092..4b2001c 100644
--- a/Client/Frontend/Browser/BrowserViewController.swift
+++ b/Client/Frontend/Browser/BrowserViewController.swift
@@ -144,7 +144,6 @@ class BrowserViewController: UIViewController {
override func willTransitionToTraitCollection(newCollection: UITraitCollection, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
super.willTransitionToTraitCollection(newCollection, withTransitionCoordinator: coordinator)
- updateToolbarStateForTraitCollection(newCollection)
// WKWebView looks like it has a bug where it doesn't invalidate it's visible area when the user
// performs a device rotation. Since scrolling calls
@@ -155,6 +154,7 @@ class BrowserViewController: UIViewController {
coordinator.animateAlongsideTransition({ context in
scrollView.setContentOffset(CGPoint(x: contentOffset.x, y: contentOffset.y + 1), animated: true)
self.scrollController.showToolbars(animated: false)
+ self.updateToolbarStateForTraitCollection(newCollection)
}, completion: { context in
scrollView.setContentOffset(CGPoint(x: contentOffset.x, y: contentOffset.y), animated: false)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment