diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-08-21 16:38:51 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-08-21 17:30:21 +0200 |
| commit | 0dd4ae0a7ac0c247078df492469ff20b8a90c886 (patch) | |
| tree | 07a55343b9ccab3fe76b0f1b0de9d1be310d8b14 /src/layout/fixed.rs | |
| parent | f38eb10c2b54bd13ccef119454839f6a66448462 (diff) | |
Prune derives
Diffstat (limited to 'src/layout/fixed.rs')
| -rw-r--r-- | src/layout/fixed.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/layout/fixed.rs b/src/layout/fixed.rs index 7f292f14..02660d1d 100644 --- a/src/layout/fixed.rs +++ b/src/layout/fixed.rs @@ -3,7 +3,6 @@ use decorum::N64; use super::*; /// A node that can fix its child's width and height. -#[derive(Debug, Clone, Eq, PartialEq)] #[cfg_attr(feature = "layout-cache", derive(Hash))] pub struct FixedNode { /// The fixed width, if any. @@ -78,7 +77,7 @@ impl Layout for FixedNode { // relayout with expansion. if let Some(aspect) = aspect { if width.is_none() && height.is_none() { - let needed = frames[0].size.cap(size); + let needed = frames[0].item.size.cap(size); let width = needed.width.max(aspect * needed.height); regions.current = Size::new(width, width / aspect); regions.expand = Spec::splat(true); |
