mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
switch in iOS cannot have different size than 51/31. Setting it in onMeasure is late. (#4212)
This commit is contained in:
@ -37,6 +37,8 @@ export class Switch extends SwitchBase {
|
||||
this._handler = SwitchChangeHandlerImpl.initWithOwner(new WeakRef(this));
|
||||
nativeView.addTargetActionForControlEvents(this._handler, "valueChanged", UIControlEvents.ValueChanged);
|
||||
this.nativeView = nativeView;
|
||||
this.width = 51;
|
||||
this.height = 31;
|
||||
}
|
||||
|
||||
get ios(): UISwitch {
|
||||
|
Reference in New Issue
Block a user