mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-20 02:47:34 +03:00
Fix hoverable elements moving on hover
This commit is contained in:
parent
477f4ddbbd
commit
5a9c76e080
@ -121,10 +121,9 @@ impl<V, E: Element<V>> AnyStatefulElement<V> for StatefulElement<V, E> {
|
||||
Err(error) => ElementPhase::Error(error.to_string()),
|
||||
},
|
||||
ElementPhase::PostPaint {
|
||||
mut layout,
|
||||
layout,
|
||||
mut paint_state,
|
||||
} => {
|
||||
layout.bounds = layout.bounds + parent_origin;
|
||||
self.element.paint(view, &layout, &mut paint_state, cx);
|
||||
ElementPhase::PostPaint {
|
||||
layout,
|
||||
|
Loading…
Reference in New Issue
Block a user