From 38e36fd806120e2914649268bd72adbe1add9c13 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Fri, 25 Dec 2020 13:18:47 +0100 Subject: [PATCH] Combo boxes has a scroll area Closes https://github.com/emilk/egui/issues/75 --- CHANGELOG.md | 1 + egui/src/containers/combo_box.rs | 10 +++++++--- egui/src/containers/scroll_area.rs | 23 +++++++++++++---------- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 604d7939..45f42d47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). * Made some more fields of `RawInput` optional. * `Slider` and `DragValue` uses fewer decimals by default. See the full precision by hovering over the value. * `egui::App`: added `fn name(&self)` and `fn clear_color(&self)`. +* Combo boxes has scroll bars when needed. ### Fixed 🐛 diff --git a/egui/src/containers/combo_box.rs b/egui/src/containers/combo_box.rs index 54795cd3..5d34e7d7 100644 --- a/egui/src/containers/combo_box.rs +++ b/egui/src/containers/combo_box.rs @@ -23,6 +23,8 @@ pub fn combo_box( selected: impl Into