mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Don't wrap the text in the Frame demo
This commit is contained in:
@@ -60,6 +60,7 @@ impl super::View for FrameDemo {
|
|||||||
.rounding(ui.visuals().widgets.noninteractive.rounding)
|
.rounding(ui.visuals().widgets.noninteractive.rounding)
|
||||||
.show(ui, |ui| {
|
.show(ui, |ui| {
|
||||||
self.frame.show(ui, |ui| {
|
self.frame.show(ui, |ui| {
|
||||||
|
ui.style_mut().wrap = Some(false);
|
||||||
ui.label(egui::RichText::new("Content").color(egui::Color32::WHITE));
|
ui.label(egui::RichText::new("Content").color(egui::Color32::WHITE));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user