diff --git a/resources/skins.citizen.preferences/clientPreferences.js b/resources/skins.citizen.preferences/clientPreferences.js index f55c3bd0..82d07197 100644 --- a/resources/skins.citizen.preferences/clientPreferences.js +++ b/resources/skins.citizen.preferences/clientPreferences.js @@ -83,6 +83,9 @@ function toggleDocClassAndSave( featureName, value, config ) { const pref = config[ featureName ]; const callback = pref.callback || ( () => {} ); clientPrefs.set( featureName, value ); + // Client preferences often change the layout of the page significantly, so emit + // a window resize event for other apps that need to update (T374092). + window.dispatchEvent( new Event( 'resize' ) ); callback(); }