From 6212436fab8f122ab6404ca39d62575cb5066f30 Mon Sep 17 00:00:00 2001 From: Matt Holgate Date: Thu, 17 Jul 2014 12:03:41 +0100 Subject: Fix odd animation when opening a document on iOS. The background colour of the MuDocumentController's root view wasn't set, so the MuLibraryController was showing through until it had been removed from the screen. Fix by setting the background colour to gray - the same colour as the window. --- platform/ios/Classes/MuDocumentController.m | 1 + 1 file changed, 1 insertion(+) (limited to 'platform/ios/Classes') diff --git a/platform/ios/Classes/MuDocumentController.m b/platform/ios/Classes/MuDocumentController.m index 35982ba7..752eaff0 100644 --- a/platform/ios/Classes/MuDocumentController.m +++ b/platform/ios/Classes/MuDocumentController.m @@ -203,6 +203,7 @@ static void saveDoc(char *current_path, fz_document *doc) UIView *view = [[UIView alloc] initWithFrame: CGRectZero]; [view setAutoresizingMask: UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight]; [view setAutoresizesSubviews: YES]; + view.backgroundColor = [UIColor grayColor]; canvas = [[UIScrollView alloc] initWithFrame: CGRectMake(0,0,GAP,0)]; [canvas setAutoresizingMask: UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight]; -- cgit v1.2.3