Skip to content

Interaction between BHox, Output and IntSlider shrinks the slider to a point #1529

@tsierens

Description

@tsierens

Description

When using an IntSlider and Output widgets in an HBox, the slider acts properly in a jupyter notebook, but while in a Voila client it is shrunk to take up zero space

Reproduce

The following snippet works in jupyter, but fails in voila.

from ipywidgets import IntSlider, Layout, HBox, Output

style = {'description_width' : '12em'}
layout = Layout(width = '36em')
output = Output()
with output:
    print('hi')
HBox([IntSlider(value = 0, min = 0, max = 10, style = style, layout = layout), output])
Image Image

Expected behavior

For the IntSlider to be useable

Additional Context

These widgets used to work as intended. I am not sure when they started to malfunction.

If using JupyterLab

jupyterlab==4.4.2
jupyterlab_pygments==0.3.0
jupyterlab_server==2.27.3
jupyterlab_widgets==3.0.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions