tview icon indicating copy to clipboard operation
tview copied to clipboard

Need `minHeight` param for the `InputField`

Open Abhishekkarunakaran opened this issue 8 months ago • 1 comments

The inputField accepts input correctly only when the height of the terminal interface exceeds a certain threshold. Image

But when the height less than the threshold, it fail to take (show) the entered string.

Image

Abhishekkarunakaran avatar Apr 16 '25 06:04 Abhishekkarunakaran

If you're using Flex, please use a "fixedSize" value of 3 in your call to Additem(). If you're using Grid, set the row height to 3 in your call to SetRows(). This should achieve what you need.

ps. Elements don't propagate their size upwards to their container primitives. So there will never be a "minimumHeight" parameter for an InputField.

rivo avatar Aug 27 '25 16:08 rivo