diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-08 10:59:16 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-08 10:59:16 -0800 |
commit | 2e35f65ff2021b7acd80bf9716d35cf526c69de5 (patch) | |
tree | c45aad595225e0b856697cda316c311afb0606f5 /MobileCydia.mm | |
parent | 57daa971cb88b48e747968e4279b195fc199c4c8 (diff) |
On 2.x I have this funny status bar offset.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 23a9402..58fcd07 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -5747,6 +5747,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { CGRect viewframe = [[base view] convertRect:[list_ frame] fromView:[list_ superview]]; CGRect intersection = CGRectIntersection(viewframe, kbframe); + if (kCFCoreFoundationVersionNumber < kCFCoreFoundationVersionNumber_iPhoneOS_3_0) // XXX: _UIApplicationLinkedOnOrAfter(4) + intersection.size.height += CYStatusBarHeight([self interfaceOrientation]); + [self resizeForKeyboardBounds:intersection duration:duration curve:curve]; } |