mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Additional fixes
This commit is contained in:
@@ -45,8 +45,9 @@ export class Button extends common.Button {
|
||||
}
|
||||
|
||||
public _setFormattedTextPropertyToNative(value) {
|
||||
var newText = value ? value._formattedText : null;
|
||||
if (this.android) {
|
||||
this.android.setText(value._formattedText);
|
||||
this.android.setText(newText);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +64,8 @@ export class Button extends common.Button {
|
||||
// the UIControlStateNormal value. If the value for UIControlStateNormal is not set,
|
||||
// then the property defaults to a system value. Therefore, at a minimum, you should
|
||||
// set the value for the normal state.
|
||||
this.ios.setAttributedTitleForState(value._formattedText, UIControlState.UIControlStateNormal);
|
||||
var newText = value ? value._formattedText : null;
|
||||
this.ios.setAttributedTitleForState(newText, UIControlState.UIControlStateNormal);
|
||||
this.style._updateTextDecoration();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user