Skip to content

Commit

Permalink
Fix combo box misalignment on rtl layout (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
juancampa authored Mar 7, 2022
1 parent 27e1792 commit e3d1fa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ NOTE: [`epaint`](epaint/CHANGELOG.md), [`eframe`](eframe/CHANGELOG.md), [`egui_w


## Unreleased

* Fixed ComboBoxes always being rendered left-aligned ([1304](/~https://github.com/emilk/egui/pull/1304))

## 0.17.0 - 2022-02-22 - Improved font selection and image handling

Expand Down
2 changes: 1 addition & 1 deletion egui/src/containers/combo_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ fn button_frame(
outer_rect.set_height(outer_rect.height().at_least(interact_size.y));

let inner_rect = outer_rect.shrink2(margin);
let mut content_ui = ui.child_ui(inner_rect, Layout::left_to_right());
let mut content_ui = ui.child_ui(inner_rect, *ui.layout());
add_contents(&mut content_ui);

let mut outer_rect = content_ui.min_rect().expand2(margin);
Expand Down

0 comments on commit e3d1fa2

Please sign in to comment.