summaryrefslogtreecommitdiff
path: root/platform/ios/Classes/MuDocumentController.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/Classes/MuDocumentController.m')
-rw-r--r--platform/ios/Classes/MuDocumentController.m8
1 files changed, 7 insertions, 1 deletions
diff --git a/platform/ios/Classes/MuDocumentController.m b/platform/ios/Classes/MuDocumentController.m
index 962403ec..0e3beb1e 100644
--- a/platform/ios/Classes/MuDocumentController.m
+++ b/platform/ios/Classes/MuDocumentController.m
@@ -433,6 +433,12 @@ static void saveDoc(char *current_path, fz_document *doc)
barmode = BARMODE_ANNOTATION;
}
+- (void) update
+{
+ for (UIView<MuPageView> *view in [canvas subviews])
+ [view update];
+}
+
- (void) onMore: (id)sender
{
[self showAnnotationMenu];
@@ -887,7 +893,7 @@ static void saveDoc(char *current_path, fz_document *doc)
UIView<MuPageView> *view
= reflowMode
? [[MuPageViewReflow alloc] initWithFrame:CGRectMake(number * width, 0, width-GAP, height) document:docRef page:number]
- : [[MuPageViewNormal alloc] initWithFrame:CGRectMake(number * width, 0, width-GAP, height) dialogCreator:self document:docRef page:number];
+ : [[MuPageViewNormal alloc] initWithFrame:CGRectMake(number * width, 0, width-GAP, height) dialogCreator:self updater:self document:docRef page:number];
[view setScale:scale];
[canvas addSubview: view];
if (showLinks)