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

Widgets with 100% width produce erroneous horizontal scroll bar #100

Open
dokempf opened this issue Dec 16, 2021 · 2 comments
Open

Widgets with 100% width produce erroneous horizontal scroll bar #100

dokempf opened this issue Dec 16, 2021 · 2 comments
Labels
bug Something isn't working
Projects

Comments

@dokempf
Copy link
Member

dokempf commented Dec 16, 2021

We are fitting widgets into layout containers a lot by specifying width='100%' to make them fit exactly. However, many of these still produce a horizontal scrollbar. I consider this a bug of ipywidgets which should be researched and potentially reported upstream.

@dokempf dokempf added the bug Something isn't working label Dec 16, 2021
@dokempf
Copy link
Member Author

dokempf commented Jan 27, 2022

The min_width field of ipywidgets.Layout can be set to a smaller number to prevent this. It might be necessary in many places though to completely prevent scrollbars.

@dokempf dokempf added this to To do in Release 1.0 Jan 27, 2022
@dokempf
Copy link
Member Author

dokempf commented Feb 1, 2022

Another observation: Often wrapping ipwidgets.VBox creates the problem in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant