Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update UAModalPanel/Panel/Panels/UAModalPanel.m #25

Merged
merged 1 commit into from Sep 12, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions UAModalPanel/Panel/Panels/UAModalPanel.m
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down