Skip to content

Commit 2a3b577

Browse files
committed
fix: use ceil size for positioner
1 parent d29dd8d commit 2a3b577

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sctk/src/application.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ fn run_command<A, E>(
17051705
let bounds = node.bounds();
17061706
let (w, h) = ((bounds.width.ceil() + 0.1) as u32, (bounds.height.ceil() + 0.1) as u32);
17071707
auto_size_surfaces.insert(SurfaceIdWrapper::Popup(popup.id), (w, h, popup.positioner.size_limits, false));
1708-
popup.positioner.size = Some((bounds.width as u32, bounds.height as u32));
1708+
popup.positioner.size = Some((w, h));
17091709
}
17101710
proxy.send_event(Event::Popup(popup::Action::Popup{popup, _phantom}));
17111711
} else {

0 commit comments

Comments
 (0)