Run all stack-layout tests

This commit is contained in:
Panayot Cankov
2016-12-29 11:46:04 +02:00
parent bbc804a7b5
commit 773e069681
3 changed files with 6 additions and 6 deletions

View File

@@ -1336,10 +1336,10 @@ function parseThickness(value: string): Thickness {
function convertToMargins(this: void, value: string): [CssProperty<any, any>, any][] {
let thickness = parseThickness(value);
return [
[marginTopProperty, Length.parse(thickness.top)],
[marginRightProperty, Length.parse(thickness.right)],
[marginBottomProperty, Length.parse(thickness.bottom)],
[marginLeftProperty, Length.parse(thickness.left)]
[marginTopProperty, PercentLength.parse(thickness.top)],
[marginRightProperty, PercentLength.parse(thickness.right)],
[marginBottomProperty, PercentLength.parse(thickness.bottom)],
[marginLeftProperty, PercentLength.parse(thickness.left)]
];
}