summaryrefslogtreecommitdiff
path: root/CyteKit/WebViewController.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-24 09:44:57 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-24 09:44:57 -0700
commit3cf380678a801294f8fae45b4594682dce224165 (patch)
tree04d1b99b14548d5351021eb78800257e6d0d609f /CyteKit/WebViewController.mm
parentb1497b56219ae6773df40864729329f8b17f33fa (diff)
Correctly handle layout updates of background tabs.
Diffstat (limited to 'CyteKit/WebViewController.mm')
-rw-r--r--CyteKit/WebViewController.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index 36c8177..4d4d250 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -1060,6 +1060,9 @@ float CYScrollViewDecelerationRateNormal;
if ([self hidesNavigationBar])
[self _setHidesNavigationBar:YES animated:animated];
+ // XXX: why isn't this evern called automatically?
+ [[self webView] setNeedsLayout];
+
[self dispatchEvent:@"CydiaViewWillAppear"];
[super viewWillAppear:animated];
}