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

Should Row and Column have width and height parameters? #23

Closed
jbednar opened this issue Sep 4, 2018 · 7 comments · Fixed by #258
Closed

Should Row and Column have width and height parameters? #23

jbednar opened this issue Sep 4, 2018 · 7 comments · Fixed by #258

Comments

@jbednar
Copy link
Member

jbednar commented Sep 4, 2018

Right now, Panes have width and height (most of them), but it looks like rows and columns only adapt to the size of the items within them. Can Row and Column support width and height (defaulting to None) so that people can reserve space for a variable number and size of thing that might be in them?

Of course, we'd immediately want control over what happens to the things inside relative to the space reserved (i.e. centered or justified in either direction, for both x and y), but we probably already need that anyway just because not everything in the same row or column will be the same width.

@philippjfr
Copy link
Member

Right now, Panes have width and height (most of them), but it looks like rows and columns only adapt to the size of the items within them. Can Row and Column support width and height (defaulting to None) so that people can reserve space for a variable number and size of thing that might be in them?

No, at least currently bokeh Row and Column models do not have a width or height.

@jbednar
Copy link
Member Author

jbednar commented Sep 4, 2018

Do you know how people usually handle that in Bokeh (making a minimum-sized region in which other things can be placed without affecting surrounding items)?

@philippjfr
Copy link
Member

philippjfr commented Sep 4, 2018

You can use a Spacer, which is also supported in panel.

@philippjfr
Copy link
Member

Once the new layout work is merged into bokeh, Row/Column will have a width and height.

@kcpevey
Copy link
Contributor

kcpevey commented Sep 13, 2018

Great! I'm glad to see this implemented.

@philippjfr
Copy link
Member

Don't want to overpromise, I don't yet know what the semantics of Row/Column width and height settings will be, i.e. if it actually forces subplots to conform to the size, or just cuts them off or whatever.

@philippjfr
Copy link
Member

This is now supported.

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

Successfully merging a pull request may close this issue.

3 participants