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
For the lib to behave correctly it is necessary to specify an itemSize in pixels. It would be awesome if it would work with dynamic sizes per item. Is this planned or even possible in the current implementation?
The text was updated successfully, but these errors were encountered:
maps82
changed the title
Support variable heights per element
Support variable heights per item
Apr 12, 2023
Looks like I have found a workaround to adjust items of different sizes.
Give itemSize to around 200-300 (play around with it; dragging the items around), and give itemClass. (Say, the itemClass is "single-item"). Then, give the css to it in your global css file as below:
.single-item {
height: fit-content !important;
}
The DragDropList component should look something similar to this:
For the lib to behave correctly it is necessary to specify an itemSize in pixels. It would be awesome if it would work with dynamic sizes per item. Is this planned or even possible in the current implementation?
The text was updated successfully, but these errors were encountered: