Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion NUI/Core/Renderers/NUIButtonRenderer.m
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,12 @@ + (void)render:(UIButton*)button withClass:(NSString*)className
for (UIView* subview in button.subviews) {
if ([subview isKindOfClass:[UILabel class]] == NO) {
subview.layer.cornerRadius = r;
subview.layer.masksToBounds = YES;
}
else {
subview.layer.masksToBounds = NO;
}
}
button.layer.masksToBounds = NO;
}

[NUIViewRenderer renderShadow:button withClass:className];
Expand Down