From 31843a641501842a643c781f4ea4bbb6d80d114f Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 18 Jun 2025 19:41:52 -0700 Subject: [PATCH] Add TODO --- crates/egui/src/containers/panel.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/egui/src/containers/panel.rs b/crates/egui/src/containers/panel.rs index 4dae2cd57..c157b703c 100644 --- a/crates/egui/src/containers/panel.rs +++ b/crates/egui/src/containers/panel.rs @@ -275,6 +275,8 @@ impl SidePanel { if is_expanded.is_some() && width <= width_range.min && width < old_width { drag_to_close = true; + // TODO(emilk): it would be nice if, when the user expands the panel again, + // we could return to the width the panel had before the user started drag-to-closing it. } } } @@ -809,6 +811,8 @@ impl TopBottomPanel { && height < old_height { drag_to_close = true; + // TODO(emilk): it would be nice if, when the user expands the panel again, + // we could return to the width the panel had before the user started drag-to-closing it. } } }