From eb9a0ed881e36468a2ba1f74575ebc28f79208af Mon Sep 17 00:00:00 2001 From: Michael Angerman <1809991+stormasm@users.noreply.github.com> Date: Mon, 23 Jun 2025 20:54:51 -0700 Subject: [PATCH] chore: Fix button example so that it scrolls in the y direction (#999) The button example was not scrolling in the y direction and therefore you were *NOT* able to see the entire ButtonStory. This minor fix now enables one to see the entire ButtonStory. The only code that needed to be added was ```rust .id("button_example") .overflow_y_scroll() ``` --- crates/story/examples/button.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/story/examples/button.rs b/crates/story/examples/button.rs index 8d8b1fe6..ebf311a0 100644 --- a/crates/story/examples/button.rs +++ b/crates/story/examples/button.rs @@ -19,7 +19,12 @@ impl Example { impl Render for Example { fn render(&mut self, _window: &mut Window, _cx: &mut Context) -> impl IntoElement { - div().p_4().size_full().child(self.root.clone()) + div() + .p_4() + .id("button_example") + .overflow_y_scroll() + .size_full() + .child(self.root.clone()) } }