diff --git a/src/__tests__/Layout-test.c b/src/__tests__/Layout-test.c index f09e6e87..a706167d 100644 --- a/src/__tests__/Layout-test.c +++ b/src/__tests__/Layout-test.c @@ -645,7 +645,7 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; + node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; node->style.dimensions[CSS_WIDTH] = 1000; node->style.dimensions[CSS_HEIGHT] = 1000; init_css_node_children(node, 2); @@ -692,7 +692,7 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; + node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; node->style.dimensions[CSS_WIDTH] = 1000; node->style.dimensions[CSS_HEIGHT] = 1000; init_css_node_children(node, 2); @@ -1615,7 +1615,7 @@ int main() css_node_t *root_node = new_css_node(); { css_node_t *node = root_node; - node->style.justify_content = CSS_JUSTIFY_SPACE_BETWEEN; + node->style.justify_content = CSS_JUSTIFY_SPACE_AROUND; node->style.dimensions[CSS_HEIGHT] = 10; node->style.padding[CSS_TOP] = 5; init_css_node_children(node, 1); diff --git a/src/transpile.html b/src/transpile.html index 3fab06c9..c4d7fa39 100644 --- a/src/transpile.html +++ b/src/transpile.html @@ -102,8 +102,8 @@ function printLayout(test) { 'flex-start': 'CSS_JUSTIFY_FLEX_START', 'center': 'CSS_JUSTIFY_CENTER', 'flex-end': 'CSS_JUSTIFY_FLEX_END', - 'space-between': 'CSS_JUSTIFY_SPACE_AROUND', - 'space-around': 'CSS_JUSTIFY_SPACE_BETWEEN' + 'space-between': 'CSS_JUSTIFY_SPACE_BETWEEN', + 'space-around': 'CSS_JUSTIFY_SPACE_AROUND' }); addEnum(node, 'alignItems', 'align_items', { 'flex-start': 'CSS_ALIGN_FLEX_START',