Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiscreteSlider not respecting sizing_mode #1134

Closed
Kramin42 opened this issue Mar 10, 2020 · 0 comments · Fixed by #1144
Closed

DiscreteSlider not respecting sizing_mode #1134

Kramin42 opened this issue Mar 10, 2020 · 0 comments · Fixed by #1144
Labels
good first issue Good for newcomers
Milestone

Comments

@Kramin42
Copy link

DiscreteSlider does not respect the sizing_mode parameter. To reproduce in jupyter notebook:

import panel as pn
pn.extension()
slider = pn.widgets.DiscreteSlider(
    name='Integer Slider',
    options=[2**i for i in range(0, 9)],
    value=4,
    sizing_mode='stretch_width')
#workaround
#slider._composite.sizing_mode='stretch_width'
slider

It is possible to workaround using slider._composite.sizing_mode='stretch_width'. It appears that sizing_mode is never passed to the Column container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants