mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
borderRadius not working on UILabel
This commit is contained in:
@ -112,6 +112,7 @@ export class DefaultStyler implements definition.stylers.Styler {
|
|||||||
private static setBorderRadiusProperty(view: view.View, newValue: any) {
|
private static setBorderRadiusProperty(view: view.View, newValue: any) {
|
||||||
if (view._nativeView instanceof UIView) {
|
if (view._nativeView instanceof UIView) {
|
||||||
(<UIView>view._nativeView).layer.cornerRadius = newValue;
|
(<UIView>view._nativeView).layer.cornerRadius = newValue;
|
||||||
|
(<UIView>view._nativeView).clipsToBounds = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user