From d9eac765dc71da109f8776545057bd3de293f947 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 31 Mar 2022 12:23:46 +0200 Subject: [PATCH] Fix typo (scrool -> scroll) --- egui_demo_lib/src/apps/demo/table_demo.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/egui_demo_lib/src/apps/demo/table_demo.rs b/egui_demo_lib/src/apps/demo/table_demo.rs index ff22fc41..a0731ecc 100644 --- a/egui_demo_lib/src/apps/demo/table_demo.rs +++ b/egui_demo_lib/src/apps/demo/table_demo.rs @@ -5,7 +5,7 @@ use egui_extras::{Size, StripBuilder, TableBuilder}; #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] #[derive(Default)] pub struct TableDemo { - virtual_scrool: bool, + virtual_scroll: bool, } impl super::Demo for TableDemo { @@ -27,7 +27,7 @@ impl super::Demo for TableDemo { impl super::View for TableDemo { fn ui(&mut self, ui: &mut egui::Ui) { - ui.checkbox(&mut self.virtual_scrool, "Virtual scroll demo"); + ui.checkbox(&mut self.virtual_scroll, "Virtual scroll demo"); // The table is inside a grid as its container would otherwise grow slowly as it takes all available height ui.spacing_mut().item_spacing = Vec2::splat(4.0); @@ -55,7 +55,7 @@ impl super::View for TableDemo { }); }) .body(|mut body| { - if self.virtual_scrool { + if self.virtual_scroll { body.rows(20.0, 100_000, |index, mut row| { row.col(|ui| { ui.label(index.to_string());