thiagoperes / IDMPhotoBrowser

Photo Browser / Viewer inspired by Facebook's and Tweetbot's with ARC support, swipe-to-dismiss, image progress and more
MIT License
2.71k stars 642 forks source link

Incorrect done button position #252

Closed oliveroneill closed 7 years ago

oliveroneill commented 7 years ago

In the code below the _doneButtonSize variable is set based on _doneButtonImage.size after just confirming that _doneButtonImage is NULL. Therefore the size will always have a width and height of zero unless using a custom done button image. This is fixed by using the frame which is set based on orientation.