From 70571b9da9804e364f2c99ade533cb27bec928d1 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 6 Nov 2009 09:37:42 +0000 Subject: [PATCH] Tiny improvement to fix scrolling behavior under the lockbar. --- LockScreen.mm | 3 +++ makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/LockScreen.mm b/LockScreen.mm index f919b52..9ac2c02 100644 --- a/LockScreen.mm +++ b/LockScreen.mm @@ -42,6 +42,7 @@ #import #import +#import #import // XXX: fix the minimum requirement @@ -534,6 +535,7 @@ _trace(); } CGRect subrect([scroller_ frame]); + subrect.size.height -= [TPBottomLockBar defaultHeight]; subrect.size.height -= extra; [scroller_ setScrollerIndicatorSubrect:subrect]; @@ -542,6 +544,7 @@ _trace(); CGSize size(size_); size.height += extra; + size.height += [TPBottomLockBar defaultHeight]; [scroller_ setContentSize:size]; [scroller_ releaseRubberBandIfNecessary]; diff --git a/makefile b/makefile index 9782796..637b624 100644 --- a/makefile +++ b/makefile @@ -6,7 +6,7 @@ include $(base)/tweak.mk all: WebCycriptLockScreen WebCycriptLockScreen: LockScreen.mm makefile $(base)/../mobilesubstrate/substrate.h - $(target)g++ -bundle -mthumb -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -lobjc -I$(base)/../mobilesubstrate $(link) $(flags) -framework CoreGraphics -framework QuartzCore -framework SpringBoardUI -framework WebCore -framework GraphicsServices + $(target)g++ -bundle -mthumb -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -lobjc -I$(base)/../mobilesubstrate $(link) $(flags) -framework CoreGraphics -framework QuartzCore -framework SpringBoardUI -framework WebCore -framework GraphicsServices -framework TelephonyUI ldid -S $@ extra: -- 2.45.2