Don't wrap the text in the `Frame` demo

This commit is contained in:
Emil Ernerfeldt 2024-03-29 15:58:37 +01:00
parent 0a428f0887
commit 73dbfd689b
1 changed files with 1 additions and 0 deletions

View File

@ -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));
});
});