X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/b13b8664e70405f065a37d67fb4eb7c39a6a438b..ab2cfc1e0f4678f398698b0d9db90c69e1e71f3c:/UICaboodle/BrowserView.mm?ds=sidebyside diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index d5496403..43f2905a 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -646,6 +646,14 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se [self _setViewportWidth]; } +- (void) _setViewportWidthOnMainThread:(NSNumber *)width { + [self setViewportWidth:[width floatValue]]; +} + +- (void) setViewportWidthOnMainThread:(float)width { + [self performSelectorOnMainThread:@selector(_setViewportWidthOnMainThread:) withObject:[NSNumber numberWithFloat:width] waitUntilDone:NO]; +} + - (void) webViewUpdateViewSettings:(UIWebView *)view { [self _setViewportWidth]; }