mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Add drag-to-open for collapsible panels (#8363)
A fully collapsed `show_collapsible` panel now leaves a thin grab handle at its fixed edge, invisible until hovered. Dragging it out past `min_size` (or double-clicking it) reopens the panel. Opt out with `panel.drag_to_open(false)`. --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -361,7 +361,8 @@ impl WrapApp {
|
||||
let mut cmd = Command::Nothing;
|
||||
|
||||
egui::Panel::left("backend_panel")
|
||||
.resizable(false)
|
||||
.resizable(true)
|
||||
.size_range(280..=400)
|
||||
.show_collapsible(ui, &mut is_open, |ui| {
|
||||
ui.add_space(4.0);
|
||||
ui.vertical_centered(|ui| {
|
||||
|
||||
Reference in New Issue
Block a user