X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/ca06bb0edc752c6a55d51450af8a4bb4acf3b5f5..172b238d6f66f6b1a0298ef9ebbcfbe9477a2221:/UICaboodle/RVBook.mm diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm index 18de2b6d..3fd525e0 100644 --- a/UICaboodle/RVBook.mm +++ b/UICaboodle/RVBook.mm @@ -104,9 +104,10 @@ 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]; @@ -116,6 +117,8 @@ 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; }