Fix hoverable elements moving on hover

This commit is contained in:
Nathan Sobo 2023-09-05 15:16:41 -06:00
parent 477f4ddbbd
commit 5a9c76e080

View File

@ -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,