This commit is contained in:
2025-07-03 09:09:59 -05:00
parent 2b879ad51d
commit cb74ac1ddc
3 changed files with 32 additions and 16 deletions
+5 -4
View File
@@ -20,11 +20,12 @@ fn main() {
let mut d = Div::new();
d.draw("test".to_string())
.component(Transform::new().margin(20, 0));
d.draw("abcsdsd".to_string());
d.draw("test".to_string()).component(Transform::center());
d.draw("abc".to_string())
.component(Transform::center().margin(0, 25));
app.draw(d).component(Transform::center());
app.draw(d)
.component(Transform::center().dimensions(150, 150));
app.run().unwrap();
}