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

improve width calculation (autoWidth option true) #318

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

miashadowblue
Copy link

Fix issue of missing last slide when option autoWidth is set 'true'.

The problem (last slide breaks into next line and is therefore invisible) shows in every browser but Chrome and has its origin in the rounding of width values (function width() returns rounded value). My approach is to add up the exact widths of all slides and then round up the result, making sure enough space is available.

@prolisk
Copy link

prolisk commented May 14, 2020

The same problem
block1

My conf:
item: 4, loop: true, pager: false, autoWidth: true
Width of block - 200px;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants