summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gardiner <paul.gardiner@artifex.com>2014-03-31 17:21:18 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-04-02 14:22:46 +0200
commit5ee2c85fb269b97fa5e4d293fc0df2fa03265d7c (patch)
tree1f444dc52271023215f2693ed84a46c891e83f5c
parent3fa5683ad391f478e77bd69891ef12b2abb29928 (diff)
downloadmupdf-5ee2c85fb269b97fa5e4d293fc0df2fa03265d7c.tar.xz
iOS: ensure that the slider has the correct size if hidden during device rotation
-rw-r--r--platform/ios/Classes/MuDocumentController.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/ios/Classes/MuDocumentController.m b/platform/ios/Classes/MuDocumentController.m
index 4e805df1..d56313c9 100644
--- a/platform/ios/Classes/MuDocumentController.m
+++ b/platform/ios/Classes/MuDocumentController.m
@@ -373,6 +373,14 @@ static void saveDoc(char *current_path, fz_document *doc)
- (void) showNavigationBar
{
if ([[self navigationController] isNavigationBarHidden]) {
+ [sliderWrapper setWidth: SLIDER_W];
+ if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
+ {
+ CGRect r = [[self navigationController] toolbar].frame;
+ r.origin.x = 0;
+ r.origin.y = 0;
+ [slider setFrame:r];
+ }
[[self navigationController] setNavigationBarHidden: NO];
[[self navigationController] setToolbarHidden: NO];
[indicator setHidden: NO];