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.

Default or Initial Height not working

See original GitHub issue

style={{ resize: 'none', minHeight: 34, height: 34 }}

Initial height: 34 is not working, the plugin has inline CSS of `height: 38px;


Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

Andaristcommented, Jul 5, 2017

@FrenchMajesty if you want to have 2 rows initially in your textarea, you should use minRows prop instead of using the style

Andaristcommented, Jul 3, 2018

Closing because original author did not provide enough information to handle this.

Second idea (setting rows to minRows) is quite nice, but I don’t have time to test it out across browsers. Someone else would have to step up to do it and send up a PR with a change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set default height - height is not working inline= 'true'
The problem is we set inline : true and height : '500'. We tried to set default height is 500. But the height...
Read more >
height - CSS: Cascading Style Sheets - MDN Web Docs
The height CSS property specifies the height of an element. By default, the property defines the height of the content area.
Read more >
Height - Tailwind CSS
By default, Tailwind's height scale is a combination of the default spacing scale as well as some additional values specific to heights.
Read more >
HTML vs Body: How to Set Width and Height for Full Page Size
Yes, yes it does. The above style definition creates a problem: Setting min-height to 100% on both elements does not allow the body...
Read more >
Exploring the Complexities of Width and Height in CSS
This has to do with the box-sizing property: if it's set to content-box (the default value), the rendered size of the element is...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found