mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
this.ios.sizeToFit() added to the iOS button
This commit is contained in:
@ -31,6 +31,7 @@ export class Button extends view.View {
|
|||||||
public setNativeProperty(data: observable.PropertyChangeData) {
|
public setNativeProperty(data: observable.PropertyChangeData) {
|
||||||
if (data.propertyName === Button.textProperty) {
|
if (data.propertyName === Button.textProperty) {
|
||||||
this.ios.setTitleForState(data.value, UIKit.UIControlState.UIControlStateNormal);
|
this.ios.setTitleForState(data.value, UIKit.UIControlState.UIControlStateNormal);
|
||||||
|
this.ios.sizeToFit();
|
||||||
} else if (true) {
|
} else if (true) {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user