Closed philippjfr closed 1 week ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 82.36%. Comparing base (
ce938bf
) to head (13a6e3e
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The sizing behavior of the
Plotly
pane has been quite annoying since we first created it. The problem being that Plotly does not seem to correctly determine the size of its container on the initial render so what the user saw when using a responsive sizing mode was an initial render, followed by a visible resize event, i.e. noticeable flicker.Rather than letting Plotly handle the sizing behavior itself I've decided that we are now going to simply take control of the sizing behavior ourselves by computing the sizes of the container and then applying those using a
relayout
call. This appears to work very well, particularly when throttled, since resizing is a relatively expensive operation (~25 ms for an ordinary plot).Fixes https://github.com/holoviz/panel/issues/7445 Fixes https://github.com/holoviz/panel/issues/6173 Fixes https://github.com/holoviz/panel/issues/5970