Revert "Round tooltip co-ordinates (#3836)" (#3853)

This reverts commit 09951208a7, reversing
changes made to 93a818d018.

I noticed an issue where context menus were appearing in the wrong
location (shifted to the right) as a result of this change.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2024-01-02 20:04:11 -05:00
committed by GitHub
parent 74468a88c8
commit d637657a99
+1 -2
View File
@@ -149,8 +149,7 @@ impl Element for Overlay {
desired.origin.y = limits.origin.y;
}
let offset = point(desired.origin.x.round(), desired.origin.y.round());
cx.with_absolute_element_offset(offset, |cx| {
cx.with_element_offset(desired.origin - bounds.origin, |cx| {
cx.break_content_mask(|cx| {
for child in &mut self.children {
child.paint(cx);