]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/RVBook.mm
iPhone 4 hi-res.
[cydia.git] / UICaboodle / RVBook.mm
index 18de2b6d364a5c4d88ec9ea7ba315d6a65a5b5ec..3fd525e081c8afbc90942710b60f74faf2c0b9ce 100644 (file)
 
         struct CGRect bounds = [self bounds];
         CGSize navsize = [UINavigationBar defaultSize];
-        CGRect navrect = {{0, 0}, navsize};
+        CGRect navrect = {{0, 0}, {bounds.size.width, navsize.height}};
 
         navbar_ = [[RVNavigationBar alloc] initWithFrame:navrect];
+        [navbar_ setAutoresizingMask:UIViewAutoresizingFlexibleWidth];
         [self addSubview:navbar_];
 
         [navbar_ setBarStyle:0];
             bounds.origin.x, bounds.origin.y + navsize.height, bounds.size.width, bounds.size.height - navsize.height
         )];
 
+        [transition_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
+
         [self addSubview:transition_];
     } return self;
 }