Page 1 of 1

Hidden animations from JS component Stock

Posted: 29 September 2013, 01:00
by pikiou
I'm having real trouble with card animations using the JS component Stock.

When I do :
stock.addToStock(42, 'some_other_stock_item_id');
the animation of card 42 is hidden because my stocks are in divs with CSS attributes overflow:hidden.
Is there a way to make the animated card visible no matter what ?

Re: Hidden animations from JS component Stock

Posted: 29 September 2013, 13:43
by sourisdudesert
Hi,

Well, the thing is Stock component size shouldn't be limited: you can add any number of items. Consequently, you shouldn't limit its size with "overflow:hidden".

Can you describe a little bit what you want to achieve, in order I can help you to find another solution?

Cheers,

Re: Hidden animations from JS component Stock

Posted: 01 October 2013, 00:28
by pikiou
I ended up avoiding using "overflow:hidden" by adding a "clear:both" element after lists of floating elements for them to be contained vertically by their parent element.
It's the proper way to achieve it so this restriction made my code cleaner, thanks ^^