Fix: Invalid value 500 for property fontWeight in XML

Resolves #3175
This commit is contained in:
Rossen Hristov
2016-11-28 16:42:44 +02:00
parent b650bbbb6a
commit 39113f6fdd
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 {