React-grid-layout: Dynamic Row Height

Created on 3 Jul 2019  路  2Comments  路  Source: STRML/react-grid-layout

Hi,

First of all, thanks for your effort to develope this library. I'm trying to make dynamic rowHeight. Not with px, maybe with percentage. Is there any way to make it responsive ??

question stale

Most helpful comment

I was needed with similar feature, where I have list of accordions for draggable items and height of the item should increase when the accordion is opened.
Solved it by setting the h of layout object with the number equal to number of children inside accordion when an accordion is opened and back to 1 when it is closed.
Codesandbox url: https://codesandbox.io/s/react-grid-layout-grouped-r5vip
hope it helps.

All 2 comments

I was needed with similar feature, where I have list of accordions for draggable items and height of the item should increase when the accordion is opened.
Solved it by setting the h of layout object with the number equal to number of children inside accordion when an accordion is opened and back to 1 when it is closed.
Codesandbox url: https://codesandbox.io/s/react-grid-layout-grouped-r5vip
hope it helps.

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days

Was this page helpful?
0 / 5 - 0 ratings