mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Layout::left_to_right/right_to_left now takes the valign as argument
Previous default was `Align::Center`. Closes https://github.com/emilk/egui/issues/1040 Closes https://github.com/emilk/egui/issues/1836 Closes https://github.com/emilk/egui/pull/1837
This commit is contained in:
@@ -285,7 +285,7 @@ impl WrapApp {
|
||||
}
|
||||
self.state.selected_anchor = selected_anchor;
|
||||
|
||||
ui.with_layout(egui::Layout::right_to_left(), |ui| {
|
||||
ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
|
||||
if false {
|
||||
// TODO(emilk): fix the overlap on small screens
|
||||
if clock_button(ui, crate::seconds_since_midnight()).clicked() {
|
||||
|
||||
Reference in New Issue
Block a user