summaryrefslogtreecommitdiff
path: root/library/src/shared
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-12 21:00:23 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-12 21:00:23 +0100
commite70fbf5372dcf0c9011f0b7799dfa77194401c4f (patch)
tree5d8fcc1840b2a9b8fd4ed8654d87f735a42d740f /library/src/shared
parent70c8a089057f2c73ebeb5201fd59ee588f1c49d4 (diff)
Support `auto` as sizing for box
Diffstat (limited to 'library/src/shared')
-rw-r--r--library/src/shared/ext.rs7
1 files changed, 0 insertions, 7 deletions
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<Option<Rel<Length>>>) -> Self;
-
/// Set alignments for this content.
fn aligned(self, aligns: Axes<Option<GenAlign>>) -> Self;
@@ -52,10 +49,6 @@ impl ContentExt for Content {
self.styled(Meta::DATA, vec![Meta::Link(dest.clone())])
}
- fn boxed(self, sizing: Axes<Option<Rel<Length>>>) -> Self {
- crate::layout::BoxNode { sizing, body: self }.pack()
- }
-
fn aligned(self, aligns: Axes<Option<GenAlign>>) -> Self {
self.styled(crate::layout::AlignNode::ALIGNS, aligns)
}