Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slidesOffsetAfter does not work with grid.rows > 1 #7537

Open
5 of 6 tasks
danielkorte opened this issue May 15, 2024 · 2 comments
Open
5 of 6 tasks

slidesOffsetAfter does not work with grid.rows > 1 #7537

danielkorte opened this issue May 15, 2024 · 2 comments
Labels
t0ggles Linked to the t0ggles task

Comments

@danielkorte
Copy link

danielkorte commented May 15, 2024

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/swiper-grid-forked-kx7t38

Bug description

For my grid.rows = 2 swipers, the slidesOffsetAfter setting has no effect.

Issue #7298 may be related, but that may only apply to the slidesOffsetBefore setting because I have a non-grid swiper where slidesOffsetAfter works just fine. Not sure about the before setting.

Issue #5633 may be related too, but that issue is attempting to remove space at the end. It also uses slidesPerView: 'auto' unlike this issue which uses slidesPerView: 3.

Expected Behavior

slidesOffsetAfter should add space after the slides.

Actual Behavior

No space is added.

Swiper version

11.1.3

Platform/Target and Browser Versions

All modern browsers and OSs

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@nolimits4web
Copy link
Owner

t0ggles-create swiper

Copy link

t0ggles bot commented May 17, 2024

Task nolimits4web/SWIPER-134 was created

t0ggles task SWIPER-134

@t0ggles t0ggles bot added the t0ggles Linked to the t0ggles task label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t0ggles Linked to the t0ggles task
Projects
None yet
Development

No branches or pull requests

2 participants