From 2e45a55847cf07bebf4fdb3894ec1a4ad7711c9c Mon Sep 17 00:00:00 2001 From: David Sinclair Date: Sat, 22 May 2021 16:13:25 -0700 Subject: [PATCH] #1485 (story paging resistance) - Boo for fractions! --- clients/ios/Classes/StoryPagesObjCViewController.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clients/ios/Classes/StoryPagesObjCViewController.m b/clients/ios/Classes/StoryPagesObjCViewController.m index 4b081fe9e..d2baea996 100644 --- a/clients/ios/Classes/StoryPagesObjCViewController.m +++ b/clients/ios/Classes/StoryPagesObjCViewController.m @@ -377,6 +377,12 @@ } - (void)viewDidLayoutSubviews { + CGRect frame = self.scrollView.frame; + + if (frame.size.width != floor(frame.size.width)) { + self.scrollView.frame = CGRectMake(frame.origin.x, frame.origin.y, floor(frame.size.width), floor(frame.size.height)); + } + [super viewDidLayoutSubviews]; // [self reorientPages]; }