Skip to content
This repository was archived by the owner on May 12, 2020. It is now read-only.

New feature - DestroyOnSize

Choose a tag to compare

@oyvindhermansen oyvindhermansen released this 25 Dec 23:26

This is a new feature-release for a new option called: destroyOnSize.

Usage

import heightify from 'heightify'

heightify({
  element: '.testClass',
  destroyOnSize: 500 // This will flush heightify settings below the specified height. in this case 500px
)}
  • This feature is especially good for mobile devices, as cards almost never needs the same height when are just rendered in a list below each other.

fixed #15