bramkragten / swipe-card

Card that allows you to swipe throught multiple cards for Home Assistant Lovelace
245 stars 36 forks source link

calculate the height correctly #19

Closed basnijholt closed 4 years ago

basnijholt commented 4 years ago

Currently, the swipe-card is messing up my layout:

card-order

With this change, the height should be correctly calculated.

Disclaimer: I have never written any Javascript before...

basnijholt commented 4 years ago

Unfortunately, the array I create is empty. Not sure why? Therefore the max is -Infinity.

bramkragten commented 4 years ago

Fixed in https://github.com/bramkragten/swipe-card/commit/5de4144135ec9085bbf78922c42adecfbd80fd5c