Skip to content

Commit d2f7a79

Browse files
author
Songwen Ding
committed
chore: update readme
Change-Id: I7a026fbe2ac99cc3a79e4be87f5cbb82f2501222
1 parent 95909d6 commit d2f7a79

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.MD

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,16 @@ layout2.aspectRatio = 1
3434
layout2.width = 20%
3535
layout2.margin = 8
3636

37-
layout.set(children: [layout2])
37+
let layout3 = FlexLayout()
38+
layout3.set(layout: [
39+
"aspect-ratio": "1",
40+
"width": "50%",
41+
"margin": "8"
42+
]
43+
)
44+
45+
layout.set(children: [layout2, layout3])
3846
_ = layout.intrinsicSize
39-
print(layout.frame, layout.frame)
47+
print(layout.frame, layout2.frame, layout3.frame)
4048
```
4149

0 commit comments

Comments
 (0)