Make align-items: stretch the default

This commit is contained in:
Christopher Chedeau
2014-10-08 09:35:44 -07:00
parent 43bfaa5866
commit c0f895c6f2
8 changed files with 40 additions and 20 deletions

View File

@@ -18,7 +18,7 @@ static bool eq(float a, float b) {
}
void init_css_node(css_node_t *node) {
node->style.align_items = CSS_ALIGN_FLEX_START;
node->style.align_items = CSS_ALIGN_STRETCH;
// Some of the fields default to undefined and not 0
node->style.dimensions[CSS_WIDTH] = CSS_UNDEFINED;