From 77801ff16d182668ca282c4dbc88ba250c5ff1b1 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 12 May 2010 10:03:01 +0000 Subject: Loading changes, visibility switches, gsc.wildcat issues, remote package catalog, unique id on repository verify, copyright notice in about, and weird scrolling issues with old scroller. --- UICaboodle/BrowserView.mm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'UICaboodle') diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 134b257..13e6b08 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -262,7 +262,7 @@ static Class $UIWebBrowserView; [self loadRequest:[NSURLRequest requestWithURL:url cachePolicy:policy - timeoutInterval:30.0 + timeoutInterval:120.0 ]]; } @@ -967,9 +967,11 @@ static Class $UIWebBrowserView; [book_ reloadTitleForPage:self]; - CGRect webrect = [scroller_ bounds]; - webrect.size.height = 1; - [webview_ setFrame:webrect]; + if (Wildcat_) { + CGRect webrect = [scroller_ bounds]; + webrect.size.height = 1; + [webview_ setFrame:webrect]; + } if ([scroller_ respondsToSelector:@selector(scrollPointVisibleAtTopLeft:)]) [scroller_ scrollPointVisibleAtTopLeft:CGPointZero]; @@ -982,6 +984,12 @@ static Class $UIWebBrowserView; [scroller_ _setZoomScale:1 duration:0]; /*else if ([scroller_ respondsToSelector:@selector(setZoomScale:animated:)]) [scroller_ setZoomScale:1 animated:NO];*/ + + if (!Wildcat_) { + CGRect webrect = [scroller_ bounds]; + webrect.size.height = 0; + [webview_ setFrame:webrect]; + } } [self reloadButtons]; -- cgit v1.2.3