gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 231Rust 10TOML 3CSS 1350 Definitions

Update README.md

2ae63d7f3884dad975098e0c1c8bd6d25cd3f21b · by Emil Sjölander · (7 years ago) · parent eef6c87cc · browse the tree at this commit

Semantic delta

No definition changed: this change is text, documentation or data.

1 files · +1 −1

diff --git a/README.md b/README.md
index 07d66f685..5ce0f7d3e 100644
--- a/README.md
+++ b/README.md
@@ -81,7 +81,7 @@ dependencies {
 // MainActivity.kt
 
 val node = Node(
-  Style(size = Size(Dimension.Points(100f), Dimension.Points(100f))), 
+  Style(size = Size(Dimension.Points(100f), Dimension.Points(100f)), justifyContent = JustifyContent.Center), 
   listOf(
     Node(Style(size = Size(Dimension.Percent(0.5f), Dimension.Percent(0.5f))), listOf())
   ))