summaryrefslogtreecommitdiff
path: root/src/layout/fixed.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/fixed.rs')
-rw-r--r--src/layout/fixed.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/fixed.rs b/src/layout/fixed.rs
index 22c45ef1..04ea5a3a 100644
--- a/src/layout/fixed.rs
+++ b/src/layout/fixed.rs
@@ -12,11 +12,11 @@ pub struct FixedNode {
/// The resulting frame will satisfy `width = aspect * height`.
pub aspect: Option<f64>,
/// The child node whose size to fix.
- pub child: Node,
+ pub child: AnyNode,
}
impl Layout for FixedNode {
- fn layout(&self, ctx: &mut LayoutContext, areas: &Areas) -> Fragment {
+ fn layout(&self, ctx: &mut LayoutContext, areas: &Areas) -> Vec<Frame> {
let Areas { current, full, .. } = areas;
let full = Size::new(