From 5d58c679e4dc8fcabd36149f7cdb2ecd30c87d0c Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Fri, 14 Mar 2025 11:53:10 -0400 Subject: [PATCH] refactor: adjust dropdown popup positioner defaults --- src/widget/dropdown/widget.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/widget/dropdown/widget.rs b/src/widget/dropdown/widget.rs index e4c36087..f3388976 100644 --- a/src/widget/dropdown/widget.rs +++ b/src/widget/dropdown/widget.rs @@ -553,9 +553,11 @@ pub fn update< size: Some((selections_width as u32 + gap as u32 + pad_width as u32 + icon_width as u32, 10)), anchor_rect, // TODO: left or right alignment based on direction? - anchor: cctk::wayland_protocols::xdg::shell::client::xdg_positioner::Anchor::Bottom, - gravity: cctk::wayland_protocols::xdg::shell::client::xdg_positioner::Gravity::Bottom, + anchor: cctk::wayland_protocols::xdg::shell::client::xdg_positioner::Anchor::BottomLeft, + gravity: cctk::wayland_protocols::xdg::shell::client::xdg_positioner::Gravity::BottomRight, reactive: true, + offset: (-padding.left as i32, 0), + constraint_adjustment: 9, ..Default::default() }, parent_size: None,