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.

Slick inside the table or table-cell — Slick's width grows enormously large

See original GitHub issue

tl;dr Just use exactly this styles for your table container:

.container {
  display: table;
  width: 100%;
  table-layout: fixed;
}

Wasted a lot of time to resolve an issue, when Slick is inside display: table-cell container. There are a lot of issues created here about this topic but no one provided 100% complete answer how to deal with 45 000+ pixels wide Slick.

Here is fully working JS Fiddle: http://jsfiddle.net/h61ur1zs/1/ (resize the browser or an iframe to see Slick width grows exponentially; uncomment some styles to fix crooked hands of Slick developers, those shitty coders).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:16
  • Comments:10

github_iconTop GitHub Comments

27reactions
Apindescommented, Jul 26, 2018

Hi guys. I had the same issue - my slider was 35k pixel in length and this code *{ min-height: 0; min-width: 0; }) didn’t work for me unfortunately. So i found a simple fix: add.carousel { overflow: hidden; min-width: 100%; width: 0; } this styles to ur slider. That solved my problem and enormous length disappeared.

19reactions
tyrann0uscommented, Nov 9, 2016

@simeydotme I just reported @artuska to GitHub for beeing offensive.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Slick slider gets wrong width
So I would check to make sure that the slick slider is not nested inside of any element that is displayed as table...
Read more >
Interface TableCellOptions
grow ?: boolean. Defined in packages/table/src/TableCell.tsx:28. This is a bit of a "weird" prop since all it does is apply width: 100% to...
Read more >
B COMMISSION REGULATION (EU) No 1089/2010 of 23 ...
Directive 2007/2/EC lays down general rules for the estab- lishment of the Infrastructure for Spatial Information in the.
Read more >
Report Capabilities and Uses of Sensor-Equipped Ocean ...
With an increasing sensor size, the oxygen consumption increases and so does the stirring sensitivity. In large sensors there tends to also ...
Read more >
Untitled
Qr-cbc35 12v gz4 led, 2011 world series winner roster, Ncover exclude namespace, Cool shoelaces for converse, Audi connect help desk, Events in indianapolis ......
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 Hashnode Post

No results found