diff options
Diffstat (limited to 'widget')
-rw-r--r-- | widget/src/stack.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/widget/src/stack.rs b/widget/src/stack.rs index 8a0ea2eb..2774d035 100644 --- a/widget/src/stack.rs +++ b/widget/src/stack.rs @@ -152,7 +152,11 @@ where limits: &layout::Limits, ) -> layout::Node { if self.children.is_empty() { - return layout::Node::new(Size::ZERO); + return layout::Node::new(limits.resolve( + self.width, + self.height, + Size::ZERO, + )); } let limits = limits.width(self.width).height(self.height); |