summaryrefslogtreecommitdiff
path: root/CyteKit/WebView.mm
diff options
context:
space:
mode:
Diffstat (limited to 'CyteKit/WebView.mm')
-rw-r--r--CyteKit/WebView.mm8
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) {