diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2009-08-13 09:55:12 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:13:58 +0000 |
commit | 35bf217f57c435980e1b6cbf2ff60c0451c30e14 (patch) | |
tree | 40ee5b53d7a63032405c4e088fde0af85ed0ea2b /UICaboodle | |
parent | bfc87a4de0bb13a8dbb3d222baff1154559d9841 (diff) |
Fixed viewport and user agent.
Diffstat (limited to 'UICaboodle')
-rw-r--r-- | UICaboodle/BrowserView.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 30d8371..5f984d1 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -1171,7 +1171,7 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize( } - (void) setViewportWidth:(float)width { - width_ = width ? width != 0 : [[self class] defaultWidth]; + width_ = width != 0 ? width : [[self class] defaultWidth]; [webview_ setViewportSize:CGSizeMake(width_, UIWebViewGrowsAndShrinksToFitHeight) forDocumentTypes:0x10]; } |