diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-26 23:51:18 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-26 23:51:18 +0100 |
| commit | 50bd8634711507ead8491d8d0c2abad0481e6a83 (patch) | |
| tree | eb4a9cfc659334be5444f1e7f9d06e35439d455c /src/layout | |
| parent | 3a15922d2ffc041c3523edb479f008a9034fd400 (diff) | |
More independent placed node
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 405e4e83..9c57152a 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -136,10 +136,7 @@ impl PackedNode { /// Transform this node's contents without affecting layout. pub fn moved(self, offset: Point) -> Self { - self.transformed( - Transform::translation(offset.x, offset.y), - Spec::new(Align::Left, Align::Top), - ) + self.transformed(Transform::translation(offset.x, offset.y), Align::LEFT_TOP) } /// Transform this node's contents without affecting layout. |
