mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-28 01:07:09 +00:00
Fix hoverable elements moving on hover
This commit is contained in:
parent
477f4ddbbd
commit
5a9c76e080
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue