Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
5.13.0
-
None
Description
If I place <canvas> for webassembly to a page.. and add more content to the page so that the canvas can be scrolled out of visibility. And if I resize a browser window, only visible part of the canvas is redrawn.
It means that if the canvas is not visible at all, after resizing and scrolling back to the canvas, it is only a dark gray rectangle. I had to resize the window again to trigger redraw, which will again fill the canvas with Qt widgets visuals (correctly).
I figured out that the problem is in setting of windowCanvasPosition in QWasmCompositor::drawWindowContent (qtwasmcompositor.cpp:281). Current behavior might be desired in some cases, but redrawing the canvas without shifting a content texture to a visible part of it is important for my usecase. It could be solved by adding some sort for flag to qt/html interface. Is there something like that already?
Is it bug? feature? or feature request?