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)])
No, that seems like a bug. Please file a report on GH with as much information as possible. Making a bugfix pass over the layout system is on the 0.12.5 milestone.
Thanks,
Bryan
···
On Jan 15, 2017, at 12:01 PM, Marcus Donnelly <[email protected]> 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)])
On Sunday, January 15, 2017 at 9:59:39 PM UTC, Bryan Van de ven wrote:
No, that seems like a bug. Please file a report on GH with as much information as possible. Making a bugfix pass over the layout system is on the 0.12.5 milestone.
Thanks,
Bryan
On Jan 15, 2017, at 12:01 PM, Marcus Donnelly [email protected] 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)
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
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)])
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, [email protected] 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)])