From e70fbf5372dcf0c9011f0b7799dfa77194401c4f Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 12 Feb 2023 21:00:23 +0100 Subject: Support `auto` as sizing for box --- library/src/shared/ext.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'library/src/shared') diff --git a/library/src/shared/ext.rs b/library/src/shared/ext.rs index bda4b671..3e600b8d 100644 --- a/library/src/shared/ext.rs +++ b/library/src/shared/ext.rs @@ -16,9 +16,6 @@ pub trait ContentExt { /// Link the content to a destination. fn linked(self, dest: Destination) -> Self; - /// Force a size for this content. - fn boxed(self, sizing: Axes>>) -> Self; - /// Set alignments for this content. fn aligned(self, aligns: Axes>) -> Self; @@ -52,10 +49,6 @@ impl ContentExt for Content { self.styled(Meta::DATA, vec![Meta::Link(dest.clone())]) } - fn boxed(self, sizing: Axes>>) -> Self { - crate::layout::BoxNode { sizing, body: self }.pack() - } - fn aligned(self, aligns: Axes>) -> Self { self.styled(crate::layout::AlignNode::ALIGNS, aligns) } -- cgit v1.2.3