[Pas2js] trigger an window resize event
warleyalex
warleyalex at yahoo.com.br
Mon Dec 2 19:39:27 CET 2019
I would like to trigger the window 'resize' event on window object.
...to so I had to specified the method dispatchEvent on the TJSWindow
definition;
TJSWindow = class external name 'Window' (TJSObject)
(...)
function dispatchEvent(evt: TJSEvent): Boolean;
end;
now it's working for me.
window.dispatchEvent( TJSEvent.new('resize') );
--
Sent from: http://pas2js.38893.n8.nabble.com/
More information about the Pas2js
mailing list