From 2a3b5770b9f9c700d4aeb6398ab6c917024ce6cc Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Fri, 26 May 2023 20:15:36 -0400 Subject: [PATCH] fix: use ceil size for positioner --- sctk/src/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sctk/src/application.rs b/sctk/src/application.rs index e67721763d..c119800301 100644 --- a/sctk/src/application.rs +++ b/sctk/src/application.rs @@ -1705,7 +1705,7 @@ fn run_command( let bounds = node.bounds(); let (w, h) = ((bounds.width.ceil() + 0.1) as u32, (bounds.height.ceil() + 0.1) as u32); auto_size_surfaces.insert(SurfaceIdWrapper::Popup(popup.id), (w, h, popup.positioner.size_limits, false)); - popup.positioner.size = Some((bounds.width as u32, bounds.height as u32)); + popup.positioner.size = Some((w, h)); } proxy.send_event(Event::Popup(popup::Action::Popup{popup, _phantom})); } else {