I’ve noticed a resize jitter in WebBrowserComponent when resizing a window that contains it. This occurs on both macOS and Windows, within my own projects, and I’ve confirmed it also happens in the JUCE WebBrowserDemo.
When resizing:
- If the browser content overflows on an axis, resizing appears smooth.
- If the content has
overflow: hiddenon an axis, a white gap appears during resize.
For example:
- If overflow is hidden on the X axis, a white gap appears on the right edge of the browser while resizing.
- If overflow is hidden on the Y axis, the gap appears at the bottom edge.
To rule out background issues I tried:
- Painting the JUCE component background black
- Using
withBackgroundColour()viawithWinWebView2Options
However, the exposed area still appears white, so I’m not sure where the white background is coming from.
For comparison, this behaviour does not occur in Firefox or other browsers, where resizing the same content remains smooth without exposing a background gap.
I’ve tested this with JUCE 8.0.12 and the latest develop branch, and both exhibit the same behaviour.
I’ll attach an MP4 demonstrating the issue.
Has anyone else experienced this, or found any workarounds?
