From 1ab16d66c7f885e55ebc3e59d799f4f944631ded Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 25 May 2017 19:54:58 +1000 Subject: [PATCH] fixed: incorrect done button position --- Classes/IDMPhotoBrowser.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/IDMPhotoBrowser.m b/Classes/IDMPhotoBrowser.m index 7a4e4a32..125785fa 100644 --- a/Classes/IDMPhotoBrowser.m +++ b/Classes/IDMPhotoBrowser.m @@ -615,7 +615,7 @@ - (void)viewDidLoad { _doneButton.layer.cornerRadius = 3.0f; _doneButton.layer.borderColor = [UIColor colorWithWhite:0.9 alpha:0.9].CGColor; _doneButton.layer.borderWidth = 1.0f; - _doneButtonSize = _doneButtonImage.size; + _doneButtonSize = _doneButton.frame.size; } else { [_doneButton setImage:_doneButtonImage forState:UIControlStateNormal];