]> git.saurik.com Git - cydia.git/commitdiff
Restore setView:UIView indirection, required for keyboard resize. :(
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 21 Mar 2011 12:39:53 +0000 (05:39 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 21 Mar 2011 12:42:10 +0000 (05:42 -0700)
MobileCydia.mm

index c6d988137bb00319e082ff1734ebb571d1e04974..d999b425271df33ef54ac5e251e0a18bf8675937 100644 (file)
@@ -6225,9 +6225,13 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 }
 
 - (void) loadView {
-    list_ = [[[UITableView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame] style:UITableViewStylePlain] autorelease];
+    UIView *view([[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease]);
+    [view setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
+    [self setView:view];
+
+    list_ = [[[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStylePlain] autorelease];
     [list_ setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
-    [self setView:list_];
+    [view addSubview:list_];
 
     // XXX: is 20 the most optimal number here?
     [list_ setSectionIndexMinimumDisplayRowCount:20];