fix(draw): mismatches
Some checks failed
/ build (push) Has been cancelled

This commit is contained in:
same mf who else 2026-03-25 22:39:39 +02:00
parent 30d378a6ee
commit bea88ac58d
5 changed files with 27 additions and 15 deletions

View file

@ -201,12 +201,12 @@ impl Split {
let b = origin_b.align(b);
match self {
Self::Below => {
to.place(&b, Some(area_b));
to.place(&a, Some(area_b));
to.place_at(area_b, &b);
to.place_at(area_b, &a);
},
_ => {
to.place(&a, Some(area_a));
to.place(&b, Some(area_a));
to.place_at(area_a, &a);
to.place_at(area_a, &b);
}
}
Ok(to.xywh()) // FIXME: compute and return actually used area