0

How we can fire a window resize event with XTK? ANd is it possible to extract the width and the higth of the image witch is into the canvas ?

Best, AMAL

AMAL JERBI
  • 89
  • 1
  • 8

1 Answers1

0

The resize event is just a general resize event like here https://stackoverflow.com/a/7622176/1183453

var evt = document.createEvent('UIEvents');
evt.initUIEvent('resize', true, false,window,0);
window.dispatchEvent(evt);
Community
  • 1
  • 1
haehn
  • 967
  • 1
  • 6
  • 19