summaryrefslogtreecommitdiff
path: root/CyteKit/WebViewController.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-14 00:49:53 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-14 05:09:10 -0700
commit9b1c70dd889dd9b12036301c10acae9ce7f2556d (patch)
tree37c34ca83f385aea459d8c7b45eab5e0f9e6ade8 /CyteKit/WebViewController.mm
parentea5bf5ccf084c34aaf358b4b197b88ea4143a695 (diff)
Tapping statusbar should scroll webpages to top.
Diffstat (limited to 'CyteKit/WebViewController.mm')
-rw-r--r--CyteKit/WebViewController.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index 6263faf..2d9cfe1 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -870,6 +870,7 @@ float CYScrollViewDecelerationRateNormal;
[self setViewportWidth:width_];
UITableView *table([[[UITableView alloc] initWithFrame:[webview_ bounds] style:UITableViewStyleGrouped] autorelease]);
+ [table setScrollsToTop:NO];
[webview_ insertSubview:table atIndex:0];
[table setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];