mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
This reverts commit09951208a7
, reversing changes made to93a818d018
. 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:
parent
74468a88c8
commit
d637657a99
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user