]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/BrowserView.mm
Fixed viewport and user agent.
[cydia.git] / UICaboodle / BrowserView.mm
index 30d837185151d9f657d70cfb98841728d1232cf6..5f984d1faebb6e59c98065372befb449d111f3a8 100644 (file)
@@ -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];
 }