Skip to content

Commit

Permalink
Merge pull request #319 from jkolb/master
Browse files Browse the repository at this point in the history
Fix problem on iPhone 6+ with 1/2 point origin values
  • Loading branch information
cnstoll committed Jan 7, 2015
2 parents 6555e2d + b6cf140 commit 64f8b47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MMDrawerController/MMDrawerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,12 @@ -(void)panGestureCallback:(UIPanGestureRecognizer *)panGesture{
[self updateDrawerVisualStateForDrawerSide:visibleSide percentVisible:percentVisible];

[self.centerContainerView setCenter:CGPointMake(CGRectGetMidX(newFrame), CGRectGetMidY(newFrame))];

newFrame = self.centerContainerView.frame;
newFrame.origin.x = floor(newFrame.origin.x);
newFrame.origin.y = floor(newFrame.origin.y);
self.centerContainerView.frame = newFrame;

break;
}
case UIGestureRecognizerStateEnded:
Expand Down

0 comments on commit 64f8b47

Please sign in to comment.