Replies: 1 comment
-
Hello @rstrutt, thanks for submitting this feature proposal and sorry this did not got a deeper look at yet. I will tag @bokeh/dev for thoughts on this and move it into a discussion for now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you change a css class on any component, you force a redraw. From looking back through the commits, it seems that this is intentional, and required in case the css adjusts some sizing to which the rest of the application needs to be sensitive.
However... if you're adding a css class which you know will not have any impact to sizing, it might be nice to be able to suppress the redraw event.
I ran into this as I was adding a css class dynamically to more finely control the colors of a disabled drop-down on a page with many plots. The redraw of the plots was taking multiple seconds, even though the css was not affecting anything to do with any sizing.
Minimal example (in 2.3.0dev3) below. We can see that a redraw is triggered by the presence of inner_width ModelChanged events in the websocket view, but the values are unchanged as the css class that we add/remove does absolutely nothing;
Beta Was this translation helpful? Give feedback.
All reactions