Default or Initial Height not working
See original GitHub issuestyle={{ resize: 'none', minHeight: 34, height: 34 }}
Initial height: 34 is not working, the plugin has inline CSS of `height: 38px;
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@FrenchMajesty if you want to have 2 rows initially in your textarea, you should use
minRows
prop instead of using thestyle
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.