From 73dbfd689b6d1cf67bec170f3690a1c16d44e368 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Fri, 29 Mar 2024 15:58:37 +0100 Subject: [PATCH] Don't wrap the text in the `Frame` demo --- crates/egui_demo_lib/src/demo/frame_demo.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/egui_demo_lib/src/demo/frame_demo.rs b/crates/egui_demo_lib/src/demo/frame_demo.rs index b4013c93..0027a98d 100644 --- a/crates/egui_demo_lib/src/demo/frame_demo.rs +++ b/crates/egui_demo_lib/src/demo/frame_demo.rs @@ -60,6 +60,7 @@ impl super::View for FrameDemo { .rounding(ui.visuals().widgets.noninteractive.rounding) .show(ui, |ui| { self.frame.show(ui, |ui| { + ui.style_mut().wrap = Some(false); ui.label(egui::RichText::new("Content").color(egui::Color32::WHITE)); }); });