You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In order to provide a python based reflow we need a window size event that can be hooked to a callback the manipulates the layouts (example horizontal versus vertical).
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
For the sake of concern separation we would like to keep the layout logic on Bokeh and allow the switch between horizontal and vertical modes directly on the python code.
Describe the solution you'd like
A Bokeh WindowResized event that can be connected to a python callback.
Describe alternatives you've considered
The alternative is inserting individual plots - rather than grid - into the HTML, forcing the user to understand the complexities of HTML reflows.
Additional context
Add any other context or screenshots about the feature request here.
This vertical layout, from an otherwise horizontal website, has been achieved thanks to the DocumentReady event. With a WindowResized event we would achieve complete responsiveness.
Having played around with this idea in the past I have to give a word of warnings. A lot of resize events are fired when resizing the browser window with a drag so without some kind of basic throttling/debouncing this will result in a poor UX. It's probably better to start thinking about having some responsive layout in Bokeh such as the FlexBox layout I implemented for Panel.
A lot of resize events are fired when resizing the browser window with a drag so without some kind of basic >throttling/debouncing this will result in a poor UX.
I already have code for not doing anything unless a specific relation between width and height is hit (i.e. throttling). So 99.99% of the time it would be a callback invocation without any impact. Still, it would create quite some client server communication.
Regardless, is it possible to have an event WindowResized event which is only triggered when the user stopped resizing?
I am not sure about FlexBox as I am not trying to achieve a continuous reflow, but rather a reflow that only happens on certain condition:
Is your feature request related to a problem? Please describe.
In order to provide a python based reflow we need a window size event that can be hooked to a callback the manipulates the layouts (example horizontal versus vertical).
This has been discussed here:
https://discourse.bokeh.org/t/responsive-layout-with-reflow-for-screen-rotations/8219/23
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
For the sake of concern separation we would like to keep the layout logic on Bokeh and allow the switch between horizontal and vertical modes directly on the python code.
Describe the solution you'd like
A Bokeh WindowResized event that can be connected to a python callback.
Describe alternatives you've considered
The alternative is inserting individual plots - rather than grid - into the HTML, forcing the user to understand the complexities of HTML reflows.
Additional context
Add any other context or screenshots about the feature request here.
This vertical layout, from an otherwise horizontal website, has been achieved thanks to the DocumentReady event. With a WindowResized event we would achieve complete responsiveness.
More information here:
https://discourse.bokeh.org/t/responsive-layout-with-reflow-for-screen-rotations/8219/23
The text was updated successfully, but these errors were encountered: