diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-24 09:44:57 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-24 09:44:57 -0700 |
commit | 3cf380678a801294f8fae45b4594682dce224165 (patch) | |
tree | 04d1b99b14548d5351021eb78800257e6d0d609f /CyteKit/WebView.mm | |
parent | b1497b56219ae6773df40864729329f8b17f33fa (diff) |
Correctly handle layout updates of background tabs.
Diffstat (limited to 'CyteKit/WebView.mm')
-rw-r--r-- | CyteKit/WebView.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CyteKit/WebView.mm b/CyteKit/WebView.mm index a71e5c2..09c9c40 100644 --- a/CyteKit/WebView.mm +++ b/CyteKit/WebView.mm @@ -369,6 +369,14 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se else return nil; } +- (void) setNeedsLayout { + [super setNeedsLayout]; + + WebFrame *frame([[[self _documentView] webView] mainFrame]); + if ([frame respondsToSelector:@selector(setNeedsLayout)]) + [frame setNeedsLayout]; +} + @end static void $UIWebViewWebViewDelegate$_clearUIWebView(UIWebViewWebViewDelegate *self, SEL sel) { |