Skip to content

Commit

Permalink
Merge pull request mrackwitz#106 from songjisj/custom_view_fix
Browse files Browse the repository at this point in the history
Using provided height for custom view mode.
  • Loading branch information
mrackwitz committed Sep 2, 2015
2 parents 69c0fa2 + a5cae9b commit 45a89fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Components/MRProgressOverlayView.m
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,11 @@ - (void)manualLayoutSubviews {
CGFloat paddingBottom = 0;

if (self.mode != MRProgressOverlayViewModeDeterminateHorizontalBar) {
modeViewFrame = CGRectMake(modePadding, y, innerViewWidth, innerViewWidth);
if (self.mode == MRProgressOverlayViewModeCustom) {
modeViewFrame = CGRectMake(modePadding, y, innerViewWidth, self.modeView.frame.size.height);
} else {
modeViewFrame = CGRectMake(modePadding, y, innerViewWidth, innerViewWidth);
}
paddingBottom = isTextNonEmpty ? 20 : modePadding;
} else {
modeViewFrame = CGRectMake(10, y, dialogWidth-20, 5);
Expand Down

0 comments on commit 45a89fa

Please sign in to comment.