question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

White space at the end when using `variableWidth`

See original GitHub issue

When using variableWidth, white space is shown to the right side at the end of slick-track, between slick-list and slick-track. The width of slick-track is correctly calculated, but it seems that it can be scrolled to far to the left.

Example: http://jsfiddle.net/qbtcw1yL/

Is there any way to change this?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
carasmocommented, Dec 28, 2014

Infinite:true makes it work nicely. With it set to false, it adds the space. $('.variable-width').slick({ dots: true, infinite: true, speed: 300, slidesToShow: 1, centerMode: true, variableWidth: true });

3reactions
RicardoEPRodriguescommented, Nov 24, 2016

Without infinite: true and centerMode: true, how can I limit slick to stop at the outer edge of the last element?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Whitespace if slick-carousel has variableWidth and dynamic ...
I want the first and last slide to stick to edges. I am using Jquery Slick Carousel. JS Fiddle to quickly check the...
Read more >
Variable-width non-breaking space in Word 2016 (including a ...
I'm using Word 2016 to write articles that must keep certain words on the same line. Therefore, I work with a lot of...
Read more >
Whitespace If Slick-Carousel Has Variablewidth ... - ADocLib
When using variable width there is an amount of white space generated at either end. would be the white space be occupied by...
Read more >
white-space - CSS: Cascading Style Sheets - MDN Web Docs
The white-space CSS property sets how white space inside an element is handled.
Read more >
Fixed-width space character with a variable-width font?
Have a look at buffer-display-table . This is used by whitespace-mode and its whitespace-display-mappings option (noting specifically the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found