Permalink
Browse files

Merge pull request #25 from kennethmac2000/patch-4

Update UAModalPanel/Panel/Panels/UAModalPanel.m
  • Loading branch information...
2 parents 407bb20 + e529033 commit befb93cc5724ea07aeae7c5e59942366eb365155 @coneybeare coneybeare committed Sep 12, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 UAModalPanel/Panel/Panels/UAModalPanel.m
@@ -130,7 +130,7 @@ - (UIButton*)closeButton {
self.closeButton.layer.shadowOpacity = 0.3;
[closeButton addTarget:self action:@selector(closePressed:) forControlEvents:UIControlEventTouchUpInside];
- [self.contentContainer insertSubview:closeButton aboveSubview:self.roundedRect];
+ [self.contentContainer insertSubview:closeButton aboveSubview:self.contentView];
}
return closeButton;
}
@@ -157,7 +157,7 @@ - (UIButton*)actionButton {
self.actionButton.contentEdgeInsets = UIEdgeInsetsMake(4, 8, 4, 8);
[actionButton addTarget:self action:@selector(actionPressed:) forControlEvents:UIControlEventTouchUpInside];
- [self.contentContainer insertSubview:actionButton aboveSubview:self.roundedRect];
+ [self.contentContainer insertSubview:actionButton aboveSubview:self.contentView];
}
return actionButton;
}
@@ -167,7 +167,7 @@ - (UIView *)contentView {
self.contentView = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];
self.contentView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
self.contentView.autoresizesSubviews = YES;
- [self.contentContainer addSubview:contentView];
+ [self.contentContainer insertSubview:contentView aboveSubview:self.roundedRect];
}
return contentView;
}

0 comments on commit befb93c

Please sign in to comment.