iris: make span compaction explicit
This commit is contained in:
1 parent
54e6765a1d
commit
5f4975285d
4 files changed
+90
-19
No files matched your search
@@ -100,10 +100,12 @@ where
|
||||
rect(PaintId::PURPLE).sized((50, 50)).align(Align::TOP),
|
||||
)
|
||||
.span(Dir::RIGHT)
|
||||
.compact()
|
||||
.center(),
|
||||
wtext("pretty cool right?").size(50),
|
||||
)
|
||||
.span(Dir::DOWN)
|
||||
.compact()
|
||||
.add(rsc);
|
||||
|
||||
let texts = Span::empty(Dir::DOWN).gap(10).add(rsc);
|
||||
|
||||
Reference in new issue
Block a user