diff --git a/CHANGELOG.md b/CHANGELOG.md index d406d2f8561..d6a7ffb8f36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/egui/src/containers/combo_box.rs b/egui/src/containers/combo_box.rs index 14feb02c8fd..bbc3809b9cc 100644 --- a/egui/src/containers/combo_box.rs +++ b/egui/src/containers/combo_box.rs @@ -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);