question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextInput not respecting width

See original GitHub issue

Looks like TextInput is still not respecting ‘width’ in v0.12.5.

from bokeh.plotting import figure, show, curdoc, output_notebook
from bokeh.layouts import widgetbox, layout
from bokeh.models.widgets import TextInput

wd = 20
txtIn_start = TextInput(value=str(1), title="Start:", width=wd)
txtIn_end   = TextInput(value=str(9), title="End:", width=wd)
txtIn_step  = TextInput(value=str(3), title="Step:", width=wd)

txtIn_rng = widgetbox(children=[txtIn_start,txtIn_end,txtIn_step], width=wd)

#show(txtIn_rng_row)
curdoc().add_root(txtIn_rng)

textinput_width

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bryevdvcommented, Feb 19, 2019

This appears to have been fixed as of #8085

Original code with wd=20 and then wd=200

screen shot 2019-02-18 at 16 49 51 screen shot 2019-02-18 at 16 49 41
0reactions
timothydmortoncommented, Jan 9, 2018

Wonderful, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Input with width: 100% goes outside parent's bound
According to the CSS basic box model, an element's width and height are applied to its content box. Padding falls outside of that...
Read more >
Button and TextInput not respecting width · Issue #8157 - GitHub
The horizontal layout of a TextInput widget and buttons to its left and right produces overlapping elements when widths are specified.
Read more >
Set width of text input box automatically to content
I want to change width as you type. I have managed to implement this using the following code: jQuery(document).ready(function(){ //set the starting width...
Read more >
contain-intrinsic-width - CSS: Cascading Style Sheets | MDN
The contain-intrinsic-width CSS property sets the width of an element that a browser will use for layout when the element is subject to...
Read more >
CSS: Issue with input text width - MSDN - Microsoft
I'm having an issue with my css not setting the width of my input text to ... You could comment it and you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found