From edf48800ca53716ba83b0f367ab45f35dcdd9036 Mon Sep 17 00:00:00 2001 From: Adanos020 Date: Fri, 16 Jun 2023 23:06:42 +0100 Subject: [PATCH 1/3] Update egui version in badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 40afb61..ed43e48 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # `egui_dock`: docking support for [egui](https://github.com/emilk/egui) -[![egui_ver](https://img.shields.io/badge/egui-0.21-blue)](https://github.com/emilk/egui) +[![egui_ver](https://img.shields.io/badge/egui-0.22-blue)](https://github.com/emilk/egui) [![Crates.io](https://img.shields.io/crates/v/egui_dock)](https://crates.io/crates/egui_dock) [![docs.rs](https://img.shields.io/docsrs/egui_dock)](https://docs.rs/egui_dock/) From ad4472e15b6496cd60979a988219e054799526a8 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Fri, 30 Jun 2023 01:06:04 +0100 Subject: [PATCH 2/3] fix: typo --- src/widgets/dock_area/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/dock_area/mod.rs b/src/widgets/dock_area/mod.rs index 46e5ca5..5c61532 100644 --- a/src/widgets/dock_area/mod.rs +++ b/src/widgets/dock_area/mod.rs @@ -188,7 +188,7 @@ impl<'tree, Tab> DockArea<'tree, Tab> { } } - // Finaly draw separators so that their "interaction zone" is above + // Finally draw separators so that their "interaction zone" is above // bodies (see `SeparatorStyle::extra_interact_width`). for node_index in self.tree.breadth_first_index_iter() { if self.tree[node_index].is_parent() { From 4b5a897e8342ca32531b7b4c6d0658e14be9e9b9 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Fri, 30 Jun 2023 01:08:58 +0100 Subject: [PATCH 3/3] feat: double click to reset resizing --- src/widgets/dock_area/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widgets/dock_area/mod.rs b/src/widgets/dock_area/mod.rs index 5c61532..740f3ef 100644 --- a/src/widgets/dock_area/mod.rs +++ b/src/widgets/dock_area/mod.rs @@ -346,6 +346,10 @@ impl<'tree, Tab> DockArea<'tree, Tab> { *fraction = (*fraction + delta / range).clamp(min, max); } } + + if response.double_clicked() { + *fraction = 0.5; + } } } }