mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
ComboBox: fix justified layout of popup if wider than parent button (#4570)
* Closes https://github.com/emilk/egui/issues/4452 The `ComboBox` popup has a justified layout to make selection of items easier. Thanks to [the new sizing pass logic](https://github.com/emilk/egui/issues/4535) we don't have to know the final width in advance: 
This commit is contained in:
@@ -172,8 +172,6 @@ impl WidgetGallery {
|
||||
egui::ComboBox::from_label("Take your pick")
|
||||
.selected_text(format!("{radio:?}"))
|
||||
.show_ui(ui, |ui| {
|
||||
ui.style_mut().wrap_mode = Some(egui::TextWrapMode::Extend);
|
||||
ui.set_min_width(60.0);
|
||||
ui.selectable_value(radio, Enum::First, "First");
|
||||
ui.selectable_value(radio, Enum::Second, "Second");
|
||||
ui.selectable_value(radio, Enum::Third, "Third");
|
||||
|
||||
Reference in New Issue
Block a user