update c# interop to use percentage

This commit is contained in:
Lukas Woehrl
2016-12-19 23:01:31 +01:00
parent cac8d3715b
commit e2c586490a
26 changed files with 919 additions and 756 deletions

View File

@@ -21,11 +21,11 @@ namespace Facebook.Yoga
public void Test_align_items_stretch()
{
YogaNode root = new YogaNode();
root.Width = 100f;
root.Height = 100f;
root.Width = 100.Px();
root.Height = 100.Px();
YogaNode root_child0 = new YogaNode();
root_child0.Height = 10f;
root_child0.Height = 10.Px();
root.Insert(0, root_child0);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();
@@ -59,12 +59,12 @@ namespace Facebook.Yoga
{
YogaNode root = new YogaNode();
root.AlignItems = YogaAlign.Center;
root.Width = 100f;
root.Height = 100f;
root.Width = 100.Px();
root.Height = 100.Px();
YogaNode root_child0 = new YogaNode();
root_child0.Width = 10f;
root_child0.Height = 10f;
root_child0.Width = 10.Px();
root_child0.Height = 10.Px();
root.Insert(0, root_child0);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();
@@ -98,12 +98,12 @@ namespace Facebook.Yoga
{
YogaNode root = new YogaNode();
root.AlignItems = YogaAlign.FlexStart;
root.Width = 100f;
root.Height = 100f;
root.Width = 100.Px();
root.Height = 100.Px();
YogaNode root_child0 = new YogaNode();
root_child0.Width = 10f;
root_child0.Height = 10f;
root_child0.Width = 10.Px();
root_child0.Height = 10.Px();
root.Insert(0, root_child0);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();
@@ -137,12 +137,12 @@ namespace Facebook.Yoga
{
YogaNode root = new YogaNode();
root.AlignItems = YogaAlign.FlexEnd;
root.Width = 100f;
root.Height = 100f;
root.Width = 100.Px();
root.Height = 100.Px();
YogaNode root_child0 = new YogaNode();
root_child0.Width = 10f;
root_child0.Height = 10f;
root_child0.Width = 10.Px();
root_child0.Height = 10.Px();
root.Insert(0, root_child0);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();