Closed javed24 closed 2 years ago
I didn't see any upper limit to the minRows property on the docs, so I'm not really sure why increasing the value of the minRows prop isn't resulting in the textArea actually taking up more height. Or rather, from the last screenshot, why it's leaving that extra bit of space.
Yes, there is no upper limit - so it has to be related to your HTML & CSS structure.
I'm trying to leverage the
minRows
property to expand the size/height of the textArea so that it aligns with some sibling fields (as pointed out in the screenshots below by the red arrows), i.e., the last sibling field (to the left) will be at the same level as the second textArea field (to the right).Following is my code -
Now, in this first screenshot,
minRows
is set to 5, which results in the two textArea fields having a height of97px
each.The issue is, increasing the number of
minRows
then seems to get capped off at around127px
. The following screenshot is withminRows
set to 10 and no matter how high a number I pass it, it doesn't go beyond127px
.Now I understand this might be getting capped at
127px
because of the available height for the wrapper. My goal here is to have the textArea field take up the full height and not leave that extra bit of space below it (like the screenshot below), so that the bottom textArea can align, or be at the same level as the bottom sibling field on the left-hand side. The vertical gap withgap-y-3
isn't causing this extra space, just to be clear.My understanding was that slightly increasing the number of
minRows
until their heights match, or at least are close to matching would be the approach here but looks like it doesn't increase after a certain value. I didn't see any upper limit to theminRows
property on the docs, so I'm not really sure why increasing the value of theminRows
prop isn't resulting in the textArea actually taking up more height. Or rather, from the last screenshot, why it's leaving that extra bit of space.