1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

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

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