Hidden animations from JS component Stock

Game development with Board Game Arena Studio
Post Reply
User avatar
pikiou
Posts: 389
Joined: 03 October 2011, 05:36

Hidden animations from JS component Stock

Post 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 ?
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: Hidden animations from JS component Stock

Post 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,
User avatar
pikiou
Posts: 389
Joined: 03 October 2011, 05:36

Re: Hidden animations from JS component Stock

Post 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 ^^
Post Reply

Return to “Developers”