diff --git a/resources/skins.vector.es6/limitedWidthToggle.js b/resources/skins.vector.es6/limitedWidthToggle.js index 65b497c7b..3267f2bc5 100644 --- a/resources/skins.vector.es6/limitedWidthToggle.js +++ b/resources/skins.vector.es6/limitedWidthToggle.js @@ -24,6 +24,16 @@ function init() { toggle.addEventListener( 'click', function () { features.toggle( LIMITED_WIDTH_FEATURE_NAME ); setDataAttribute( toggle ); + // Fire a simulated window resize event (T328121) + let event; + if ( typeof Event === 'function' ) { + event = new Event( 'resize' ); + } else { + // IE11 + event = window.document.createEvent( 'UIEvents' ); + event.initUIEvent( 'resize', true, false, window, 0 ); + } + window.dispatchEvent( event ); } ); }