From 7eaac7b1717e4a52b8af97ed63cb3e7d27bf47bc Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Fri, 28 Feb 2025 15:40:33 +0800 Subject: [PATCH] chore: Update TabPanel `closable` doc. (#672) --- crates/ui/src/dock/tab_panel.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ui/src/dock/tab_panel.rs b/crates/ui/src/dock/tab_panel.rs index 79c9bfe5..59c80a08 100644 --- a/crates/ui/src/dock/tab_panel.rs +++ b/crates/ui/src/dock/tab_panel.rs @@ -72,6 +72,8 @@ pub struct TabPanel { pub(crate) active_ix: usize, /// If this is true, the Panel closable will follow the active panel's closable, /// otherwise this TabPanel will not able to close + /// + /// This is used for Dock to limit the last TabPanel not able to close, see [`super::Dock::new`]. pub(crate) closable: bool, tab_bar_scroll_handle: ScrollHandle,