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/
