mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Add example where you can change layout direction and alignment
This commit is contained in:
@@ -50,6 +50,7 @@ impl Label {
|
||||
|
||||
/// If true, will word wrap to `ui.available_finite().width()`.
|
||||
/// If false (default), will word wrap to `ui.available().width()`.
|
||||
/// This only makes a difference for auto-sized parents.
|
||||
pub fn auto_shrink(mut self) -> Self {
|
||||
self.auto_shrink = true;
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user