White space at the end when using `variableWidth`
See original GitHub issueWhen 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:
- Created 9 years ago
- Comments:11 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 });
Without
infinite: true
andcenterMode: true
, how can I limit slick to stop at the outer edge of the last element?