Until this is fixed, a fixed workaround (at least for bokeh server) is to place the following into a custom CSS file:
//this overwrites TextInput class for input, so width works correctly
.bk-widget-form-input {
width: 600px; //!important
}
···
On Sunday, May 28, 2017 at 9:50:17 AM UTC-4, vinhth...@gmail.com wrote:
As of v0.12.5, I am having problems setting width of TextInput. Hopefully, this will be fixed soon.
Thanks.
On Sunday, January 15, 2017 at 1:01:03 PM UTC-5, Marcus Donnelly wrote:
Hi All,
After upgrading to v0.12.4 I can no longer set the width of a WidgetBox containing a TextInput. Example code below, which worked for v0.12.3. Is there a different way of doing this now?
Thanks,
Marcus.
from bokeh.models.widgets.inputs import TextInput
from bokeh.models.layouts import WidgetBox, Column
from bokeh.plotting import show
ti = TextInput(title = ‘Enter text:’)
c = Column(children = [WidgetBox(ti,width = 1000)])
show(c)