diff --git a/crates/ui-contract/src/contract/body/window.rs b/crates/ui-contract/src/contract/body/window.rs index 0ac6e90bc..257398bea 100644 --- a/crates/ui-contract/src/contract/body/window.rs +++ b/crates/ui-contract/src/contract/body/window.rs @@ -839,6 +839,7 @@ impl BodyHooks<'_> { let top = top_band(props, &ctx, pcx.id, pcx.tokens); let pinned = overlay_of(props).map_or(Pinned::NONE, |overlay| Pinned::of(overlay, &ctx, pcx.id, pcx.env.direction().is_rtl())); let caller_sizes = overlay_of(props).is_some_and(|overlay| overlay.resize.by_caller); + let grip_name = props.resize_name.as_ref().map(|name| pcx.env.resolve(name).as_str().to_owned()); for (index, (dx, dy, cursor)) in GRIPS.into_iter().enumerate() { if held != Some(index) && !grip_stands(edges, pinned, dx, dy) { continue; @@ -862,6 +863,10 @@ impl BodyHooks<'_> { .pointer_only(reason) .exact_hit() .over(); + let part = match &grip_name { + Some(name) => part.node(crate::runtime::access::Role::SPLITTER, name.as_str()), + None => part, + }; // The grips of a window its caller sizes are the app's (`window_resize`), never the platform's. if let Some(hit) = exclusive(WindowHit::Resize(edge_of(dx, dy))).filter(|_| !caller_sizes) { part.exclusive(hit); diff --git a/crates/ui-contract/src/contract/container.rs b/crates/ui-contract/src/contract/container.rs index 502851b41..39148cc4f 100644 --- a/crates/ui-contract/src/contract/container.rs +++ b/crates/ui-contract/src/contract/container.rs @@ -812,6 +812,8 @@ pub struct ContainerProps { /// The help line the footer shows under the control column of a label-scoped container; its text joins the /// control's description. pub help: Option