react-slick icon indicating copy to clipboard operation
react-slick copied to clipboard

Flex width positive feedback.

Open sergey-lapin opened this issue 11 years ago • 4 comments

I encountered some bug while using react-slick with flex boxes.

<div style={{display:'flex'}}>
<div style={{display:'flex', flexGrow:1}}>
<Slider {...settings}>
            {caruselItems}
          </Slider>
</div>
<div style={{display:'flex', flexGrow:1}}>
@@@
</div>
</div>

First of all that does not fit into screen and if we try to rezise it width grows to infinity. I think that flexboxes and react-slick both dynamically calculate its sizes so it create positive feedback. Maybe there is some common way to deal with that as there are other react components that dynamically calculate their sizes, so there should be a way to use them with flex boxes, but unfortunatelly I don't know it =(

By the way thanks for this awesome project, best react carusel I have found so far!

sergey-lapin avatar Aug 07 '15 09:08 sergey-lapin

I am experiencing this same issue. Any work around found?

jeffcatania avatar Sep 28 '15 16:09 jeffcatania

+1 I encountered an issue when placing the Slider into a flex with horizontal flow. Didn't find a workaround.

nslobodchuk avatar Nov 28 '15 19:11 nslobodchuk

I also had this bug. So brutal.

nabilfreeman avatar Mar 04 '16 08:03 nabilfreeman

Solution to this problem is mentioned in https://github.com/kenwheeler/slick/issues/982

its working with the css fix mention in above link. Check the demo https://jsfiddle.net/kirana/wabv7wLj/

akiran avatar Mar 04 '16 10:03 akiran