Fix combo box misalignment on rtl layout (#1304)

This commit is contained in:
Juan Campa 2022-03-07 04:48:12 -05:00 committed by GitHub
parent 27e179268b
commit e3d1fa22d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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);