summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2019-03-16 23:58:36 +0100
committerMorten Johan Sørvig <morten.sorvig@qt.io>2019-04-01 07:18:05 +0000
commit69beb5f5a04bbb5b7fd64e69d1a655c0f5d956cb (patch)
tree25ea750e70d38da66c72e98676138abb0bf474b0 /qmake
parent73db765aaf9fad622f050e55e1d240329da0a07c (diff)
wasm: add resizeCanvasElement() API to qtloader.js
HTMl does not have per-element resize events, which means Qt has not way of knowing that a canvas has been resized and that the canvas buffer size should be updated. Depending on the use case, the hosting JavaScript code that caused the canvas resize could also inform Qt that the canvas has been resized. Add API to do this, which calls the existing canvas/screen resize implementation. Other solutions taken/not taken: - browser window resize events: these are available, and we install an event handler in qwasmeventtranslator.cpp. - DOM mutation events: would detect changes to the the size attributes themselves, but not if the size indirectly changed, e.g. “width: 100%” depends on the parent width. Not implemented. Change-Id: Ib324bb30f523e9fceea68000b95bf857a1d36b6c Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'qmake')
0 files changed, 0 insertions, 0 deletions