mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Fix combo box misalignment on rtl layout (#1304)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user