-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
Column breaks holoviews aspect + responsive #5054
Comments
@mattpap This one is confounding me a bit, it seems like Bokeh completely ignores the from bokeh.models import Column
from bokeh.plotting import figure
p = figure(sizing_mode='scale_both', aspect_ratio=1)
p.line([1, 2, 3], [1, 2, 3])
Column(children=[Column(children=[p], sizing_mode='scale_both')], height=400, width=800) |
It's a side effect of CSS |
That seems like a pretty big problem, canvas layouts will very commonly be laid out inside a CSS layout and things shouldn't break depending on how you compose things. |
ALL software version info
panel: 1.1.0
pandas: 2.0.1
holoviews: 1.16.1
bokeh: 3.1.1
firefox: 113.0.2 (64-bit)
Description of expected behavior and the observed behavior
When a holoviews Curve is using aspect=1 and responsive=True, wrapping that in a Column breaks the sizing.
Complete, minimal, self-contained example code that reproduces the issue
Screenshots or screencasts of the bug in action
The aspect ratio is clearly not 1. If the Column layer is removed, the plot scales to the max available width, and the height matches that responsively so that the aspect ratio is respected. Column breaks that:
The text was updated successfully, but these errors were encountered: