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 18e3dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions egui/src/context_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use super::{
Style, TextStyle,
style::Spacing,
Frame, Label,
Layout, Align,
Layout,
};

#[derive(Default)]
Expand Down 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 18e3dc7

Please sign in to comment.