Skip to content

Commit

Permalink
Fix submenu text alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
mankinskin committed Jul 9, 2021
1 parent 7540e16 commit d75870a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egui/src/context_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl<'a> SubMenu<'a> {
let padding = ui.spacing().button_padding.x;
let button = frame.show(ui, |ui| {
ui.horizontal(|ui| {
ui.with_layout(Layout::left_to_right().with_cross_align(Align::LEFT), |ui| {
ui.with_layout(Layout::left_to_right(), |ui| {
ui.add_space(padding);
ui.label(label);
});
Expand Down

0 comments on commit d75870a

Please sign in to comment.