The TextAreaInput widget is based on the Bokeh TextAreaInput widget which has a handle in its bottom-right corner allowing it to be resized manually. IIRC this used not to work at all on Bokeh 2, it's now more useful but I have a use case that is not well supported. I would like to be able to set the minimum height of the widget, have that be the height of the widget when it's initially rendered, and allow users to vertically expand the widget (that's exactly the behavior of the Github comment box I'm writing this message in!).
The
TextAreaInput
widget is based on the BokehTextAreaInput
widget which has a handle in its bottom-right corner allowing it to be resized manually. IIRC this used not to work at all on Bokeh 2, it's now more useful but I have a use case that is not well supported. I would like to be able to set the minimum height of the widget, have that be the height of the widget when it's initially rendered, and allow users to vertically expand the widget (that's exactly the behavior of the Github comment box I'm writing this message in!).I can't get the behavior I want passing these different argument variations to the
TextAreaInput
widget of the little app above:No arguments: the text area can be resized vertically, but it doesn't have the initial height I want so I'll try more options
With
min_height=200
: the text area can be resized vertically but it does not initially occupy the whole space availableWith
min_height=200, sizing_mode='stretch_height'
: the text area cannot be resized vertically, it occupies the available height.Possibly related to the issue above, I can freely resize the widget horizontally, way beyond the limit of its container.