We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 140dc11 commit 5abcd63Copy full SHA for 5abcd63
src/UnityWebBrowser.Engine.Cef/Shared/Browser/UwbCefClient.cs
@@ -412,8 +412,15 @@ public void Refresh()
412
/// <param name="resolution"></param>
413
public void Resize(Resolution resolution)
414
{
415
+ //HACK: Workaround to force cef to re-render since browser is not correctly refreshing on resize
416
+ //https://github.com/chromiumembedded/cef/issues/3826
417
+ browserHost.WasHidden(true);
418
+
419
+ //Do actual resize
420
renderHandler.Resize(new CefSize((int)resolution.Width, (int)resolution.Height));
421
browserHost.WasResized();
422
423
+ browserHost.WasHidden(false);
424
}
425
426
public void AudioMute(bool muted)
0 commit comments