Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77956

webassembly: Qt content is fit & redrawn only in a visible part of a canvas after browser window is resized

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.13.0
    • None
    • Linux/X11

    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?

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lpotter Lorn Potter
            vajicek Vaclav Krajicek
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes