summaryrefslogtreecommitdiffstats
path: root/widget/src/shader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'widget/src/shader.rs')
-rw-r--r--widget/src/shader.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/widget/src/shader.rs b/widget/src/shader.rs
index 82432c6c..16b68c55 100644
--- a/widget/src/shader.rs
+++ b/widget/src/shader.rs
@@ -83,10 +83,7 @@ where
_renderer: &Renderer,
limits: &layout::Limits,
) -> layout::Node {
- let limits = limits.width(self.width).height(self.height);
- let size = limits.resolve(Size::ZERO, self.width, self.height);
-
- layout::Node::new(size)
+ layout::atomic(limits, self.width, self.height)
}
fn on_event(