React-slick: How to set height of all elements by most large height.

Created on 18 Apr 2019  路  4Comments  路  Source: akiran/react-slick

https://jsfiddle.net/JJaun/o29a4q45/

How to implement in react

Most helpful comment

For my own purposes I was able to set height of elements to largest height with this css:

.slick-track {
    display: flex;

    .slick-slide {
        height: auto;
        display: flex;

        > div {
            display: flex;
        }
    }
}

All 4 comments

Any solutions/workarounds?

This is not a carousel specific problem

it is. Only way is to set rows: 0 as seen resolved in 鈽濓笍 jsfiddle that is now implemented using _slick.js_ (not react-slick).

But does not work with react-slick due to this issue where now setting rows: 0 crashes the app.

A fix with issue #1254 will hopefully resolve this.

Unless you can demonstrate any other way??

For my own purposes I was able to set height of elements to largest height with this css:

.slick-track {
    display: flex;

    .slick-slide {
        height: auto;
        display: flex;

        > div {
            display: flex;
        }
    }
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

adamthewan picture adamthewan  路  4Comments

jfamousket picture jfamousket  路  3Comments

PolGuixe picture PolGuixe  路  3Comments

slashwhatever picture slashwhatever  路  3Comments

eternalsky picture eternalsky  路  3Comments