question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to set the height dynamically to the content displayed inside of it

See original GitHub issue

This is basically the most perfect grid library on the human planet, but made unusable for me because the height isn’t EASILY (important nuance) dynamic/adjustable to the content inside it.

I tried several different solutions listed from other issues but to no avail. The adjustable widthProvider and/or SizeMe library doesn’t do anything useful as the parent component (react-grid-layout) its height is still “hardcoded”, it just displays what height value it is and nothing more.

I also don’t understand why there’s a minH/maxH, if you are required to enter a static h value anyways, rendering these values useless?

I’m not after complex/custom solutions for a simple height adjustment. If there’s no simple solution I’m dropping this library only for this reason.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:5

github_iconTop GitHub Comments

9reactions
drixiecommented, Jan 12, 2021

Any inputs on this? This is a valid issue

0reactions
diegoulloaocommented, Sep 1, 2022

Same problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to set the height dynamically to the content ...
I tried several different solutions listed from other issues but to no avail. The adjustable widthProvider and/or SizeMe library doesn't do ...
Read more >
Unable to set the height dynamically to textarea
Save this question. Show activity on this post. I've a textarea where the height of the textarea will increase dynamically based on the...
Read more >
How to adjust the width and height of iframe to fit with ...
Another way set the height and width of the iframe to fit with content is to use resize property of CSS, this method...
Read more >
Size - CSS width and height
Define the size of an element, set minimum and maximum width and height values, and hide content that overflows element boundaries.
Read more >
Solved: Powerapps - How to set dynamic height of a gallery...
Please note that the flexible height gallery was designed to estimate the content size and to adjust its height accordingly. You shuold never...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found