You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cards are rendered so that it is possible to see the ones behind before the active one. This works perfectly, but if the cards dimensions are set to width: 500px; height: 500px, then the ones in the back are hidden.
I have started to play with the demo to check the origin of this issue, and I have realised that it is due to the transform: translate3d() scale() css property applied to each <td-card></td-card>.
I see that inside ionic.tdcards2.js, the function which takes care of ordering the cards is connected to the var sortCards inside the directive tdCards:
I think that the issue is caused by the variables top and scale. Is there a reason why these variables are defined in the following way? Could they be improved by considering also the dimensions of the cards?
Thanks in advance for your reply!!
The text was updated successfully, but these errors were encountered:
Cards are rendered so that it is possible to see the ones behind before the active one. This works perfectly, but if the cards dimensions are set to
width: 500px; height: 500px
, then the ones in the back are hidden.I have started to play with the demo to check the origin of this issue, and I have realised that it is due to the
transform: translate3d() scale()
css property applied to each<td-card></td-card>
.I see that inside
ionic.tdcards2.js
, the function which takes care of ordering the cards is connected to thevar sortCards
inside the directivetdCards
:I think that the issue is caused by the variables
top
andscale
. Is there a reason why these variables are defined in the following way? Could they be improved by considering also the dimensions of the cards?Thanks in advance for your reply!!
The text was updated successfully, but these errors were encountered: