Merge pull request #3191 from NativeScript/issue-3175

Fix: Invalid value 500 for property fontWeight in XML
This commit is contained in:
Rossen Hristov
2016-11-29 10:55:22 +02:00
committed by GitHub
4 changed files with 34 additions and 3 deletions

View File

@@ -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 {