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,18 +21,18 @@ namespace Facebook.Yoga
public void Test_flex_direction_column_no_height()
{
YogaNode root = new YogaNode();
root.Width = 100f;
root.Width = 100.Px();
YogaNode root_child0 = new YogaNode();
root_child0.Height = 10f;
root_child0.Height = 10.Px();
root.Insert(0, root_child0);
YogaNode root_child1 = new YogaNode();
root_child1.Height = 10f;
root_child1.Height = 10.Px();
root.Insert(1, root_child1);
YogaNode root_child2 = new YogaNode();
root_child2.Height = 10f;
root_child2.Height = 10.Px();
root.Insert(2, root_child2);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();
@@ -86,18 +86,18 @@ namespace Facebook.Yoga
{
YogaNode root = new YogaNode();
root.FlexDirection = YogaFlexDirection.Row;
root.Height = 100f;
root.Height = 100.Px();
YogaNode root_child0 = new YogaNode();
root_child0.Width = 10f;
root_child0.Width = 10.Px();
root.Insert(0, root_child0);
YogaNode root_child1 = new YogaNode();
root_child1.Width = 10f;
root_child1.Width = 10.Px();
root.Insert(1, root_child1);
YogaNode root_child2 = new YogaNode();
root_child2.Width = 10f;
root_child2.Width = 10.Px();
root.Insert(2, root_child2);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();
@@ -150,19 +150,19 @@ namespace Facebook.Yoga
public void Test_flex_direction_column()
{
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);
YogaNode root_child1 = new YogaNode();
root_child1.Height = 10f;
root_child1.Height = 10.Px();
root.Insert(1, root_child1);
YogaNode root_child2 = new YogaNode();
root_child2.Height = 10f;
root_child2.Height = 10.Px();
root.Insert(2, root_child2);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();
@@ -216,19 +216,19 @@ namespace Facebook.Yoga
{
YogaNode root = new YogaNode();
root.FlexDirection = YogaFlexDirection.Row;
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.Width = 10.Px();
root.Insert(0, root_child0);
YogaNode root_child1 = new YogaNode();
root_child1.Width = 10f;
root_child1.Width = 10.Px();
root.Insert(1, root_child1);
YogaNode root_child2 = new YogaNode();
root_child2.Width = 10f;
root_child2.Width = 10.Px();
root.Insert(2, root_child2);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();
@@ -282,19 +282,19 @@ namespace Facebook.Yoga
{
YogaNode root = new YogaNode();
root.FlexDirection = YogaFlexDirection.ColumnReverse;
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);
YogaNode root_child1 = new YogaNode();
root_child1.Height = 10f;
root_child1.Height = 10.Px();
root.Insert(1, root_child1);
YogaNode root_child2 = new YogaNode();
root_child2.Height = 10f;
root_child2.Height = 10.Px();
root.Insert(2, root_child2);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();
@@ -348,19 +348,19 @@ namespace Facebook.Yoga
{
YogaNode root = new YogaNode();
root.FlexDirection = YogaFlexDirection.RowReverse;
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.Width = 10.Px();
root.Insert(0, root_child0);
YogaNode root_child1 = new YogaNode();
root_child1.Width = 10f;
root_child1.Width = 10.Px();
root.Insert(1, root_child1);
YogaNode root_child2 = new YogaNode();
root_child2.Width = 10f;
root_child2.Width = 10.Px();
root.Insert(2, root_child2);
root.StyleDirection = YogaDirection.LTR;
root.CalculateLayout();