Fix combo box misalignment on rtl layout (#1304)
This commit is contained in:
parent
27e179268b
commit
e3d1fa22d1
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ NOTE: [`epaint`](epaint/CHANGELOG.md), [`eframe`](eframe/CHANGELOG.md), [`egui_w
|
||||||
|
|
||||||
|
|
||||||
## Unreleased
|
## 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
|
## 0.17.0 - 2022-02-22 - Improved font selection and image handling
|
||||||
|
|
||||||
|
|
|
@ -231,7 +231,7 @@ fn button_frame(
|
||||||
outer_rect.set_height(outer_rect.height().at_least(interact_size.y));
|
outer_rect.set_height(outer_rect.height().at_least(interact_size.y));
|
||||||
|
|
||||||
let inner_rect = outer_rect.shrink2(margin);
|
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);
|
add_contents(&mut content_ui);
|
||||||
|
|
||||||
let mut outer_rect = content_ui.min_rect().expand2(margin);
|
let mut outer_rect = content_ui.min_rect().expand2(margin);
|
||||||
|
|
Loading…
Reference in a new issue