summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Holgate <matt@emobix.co.uk>2014-07-17 12:03:41 +0100
committerMatt Holgate <matt@emobix.co.uk>2014-07-17 12:03:41 +0100
commit6212436fab8f122ab6404ca39d62575cb5066f30 (patch)
tree91f56ce38893f14b48f720b5fd5c256b8ba814f4
parent5c85915b5829d16129ee00f3eaba8ad0af2be552 (diff)
downloadmupdf-6212436fab8f122ab6404ca39d62575cb5066f30.tar.xz
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.
-rw-r--r--platform/ios/Classes/MuDocumentController.m1
1 files changed, 1 insertions, 0 deletions
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];