mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #3191 from NativeScript/issue-3175
Fix: Invalid value 500 for property fontWeight in XML
This commit is contained in:
@@ -650,7 +650,8 @@ export class Style extends DependencyObservable implements styling.Style {
|
||||
return this._getValue(fontWeightProperty);
|
||||
}
|
||||
set fontWeight(value: string) {
|
||||
this._setValue(fontWeightProperty, value);
|
||||
let stringValue = value ? value.toString() : undefined;
|
||||
this._setValue(fontWeightProperty, stringValue);
|
||||
}
|
||||
|
||||
get font(): string {
|
||||
|
||||
Reference in New Issue
Block a user