Skip to content

Commit

Permalink
fix: use ceil size for positioner
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed May 27, 2023
1 parent d29dd8d commit 2a3b577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sctk/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ fn run_command<A, E>(
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 {
Expand Down

0 comments on commit 2a3b577

Please sign in to comment.