diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-12-15 12:49:20 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-12-15 12:49:20 +0100 |
| commit | 244ad386ec271ff86a2101eb4cc38d37a55552b9 (patch) | |
| tree | a22dbbdb3f8a39c9c5a3ff347afbaf5708acec6b /src/library/placed.rs | |
| parent | 57f5c0a1b15775f9500335f455c7dc7d70cea9f5 (diff) | |
Set Rules Episode VI: Return of the Refactor
Diffstat (limited to 'src/library/placed.rs')
| -rw-r--r-- | src/library/placed.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/library/placed.rs b/src/library/placed.rs index 3e2e1b26..589a299b 100644 --- a/src/library/placed.rs +++ b/src/library/placed.rs @@ -51,13 +51,6 @@ impl Layout for PlacedNode { let target = regions.expand.select(regions.current, Size::zero()); Rc::make_mut(frame).resize(target, Align::LEFT_TOP); - // Place relative to parent's base origin by offsetting our elements by - // the negative cursor position. - if out_of_flow { - let offset = (regions.current - regions.base).to_point(); - Rc::make_mut(frame).translate(offset); - } - // Set base constraint because our pod size is base and exact // constraints if we needed to expand or offset. *cts = Constraints::new(regions.expand); |
