diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-14 00:49:53 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-14 05:09:10 -0700 |
commit | 9b1c70dd889dd9b12036301c10acae9ce7f2556d (patch) | |
tree | 37c34ca83f385aea459d8c7b45eab5e0f9e6ade8 | |
parent | ea5bf5ccf084c34aaf358b4b197b88ea4143a695 (diff) |
Tapping statusbar should scroll webpages to top.
-rw-r--r-- | CyteKit/WebViewController.mm | 1 |
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)]; |