From: Jay Freeman (saurik) Date: Mon, 14 Mar 2011 07:53:22 +0000 (-0700) Subject: Size of segmented settings controller incorrect on iPad. X-Git-Tag: v1.1.0%b7~17 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/ace9d463aa1b8e68f84e83aca0dbd288a996a728?ds=inline Size of segmented settings controller incorrect on iPad. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 255bf87c..d6bea29f 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -8585,6 +8585,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { UCLocalize("DEVELOPER"), nil]; segment_ = [[[UISegmentedControl alloc] initWithItems:items] autorelease]; + [segment_ setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin)]; container_ = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, [[self view] frame].size.width, 44.0f)] autorelease]; [container_ addSubview:segment_]; }