Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make label width configurable #1376
This implements the ideas behind #1373. The idea is that the current label width is still too brittle - we have a min and a max width, but it's too hard to get something much smaller or larger. This introduces a description_width style attribute which lets you easily set the width. As part of this, I eliminated the max-width on the label, since now it is very easy to extend the width of a label. For example,
This also affects the checkbox indent. @maxnoy - what do you think about
from ipywidgets import * style=dict(description_width='50px') widgets =  widgets.append(IntSlider(description='slide', style=style)) widgets.append(Dropdown(description='drop', style=style)) widgets.append(Checkbox(description='check', style=style)) VBox(widgets)
May 22, 2017
1 check passed
I think we usually have the widgets automatically expand the content width, so there is a correlation between widget width and content width (i.e., to make the content wider, just make the widget wider).
Can we just handle this in documentation, with the explanation that the checkbox description is on the right?