lib/Core/triggerResize.js
function triggerResize() {
  try {
    window.dispatchEvent(new Event("resize"));
  } catch (e) {
    var evt = window.document.createEvent("UIEvents");
    evt.initUIEvent("resize", true, false, window, 0);
    window.dispatchEvent(evt);
  }
}
function triggerResize() {
  try {
    window.dispatchEvent(new Event("resize"));
  } catch (e) {
    var evt = window.document.createEvent("UIEvents");
    evt.initUIEvent("resize", true, false, window, 0);
    window.dispatchEvent(evt);
  }
}
function triggerResize ( ) { try { window . dispatchEvent ( new Event ( "resize" ) ) ; } catch ( e ) { var evt = window . document . createEvent ( "UIEvents" ) ; evt . initUIEvent ( "resize" , true , false , window , 0 ) ; window . dispatchEvent ( evt ) ; } }
Trigger a window resize event.
Trigger a window resize event .