Skip to content

Commit

Permalink
Fix offset visual test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielleHuisman committed Apr 2, 2024
1 parent 9ef14f0 commit daf02ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/leptos/tests/visual/src/spec/offset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn values() -> Vec<(
}),
),
(
"() => cA: -f.width / 2",
"() => cA: -f.width/2",
DerivableFn::into(&|MiddlewareState { rects, .. }| {
OffsetOptions::Values(
OffsetOptionsValues::default().cross_axis(-rects.floating.width / 2.0),
Expand Down Expand Up @@ -68,6 +68,7 @@ pub fn Offset() -> impl IntoView {
reference_ref,
floating_ref,
UseFloatingOptions::default()
.placement(placement.into())
.while_elements_mounted_auto_update()
.middleware(MaybeProp::derive(move || {
let options = values()
Expand Down

0 comments on commit daf02ad

Please sign in to comment.