From ae28c427d61f67d439a67ef33f560b28fe41ac5f Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Thu, 7 Oct 2021 14:54:38 -0700 Subject: [PATCH] Vector should be notified by addPortletLink to collapsible where needed Bug: T139830 Change-Id: Ibf17a3df7f9409a02f1a316d5da16b32fabcc5a2 --- resources/skins.vector.legacy.js/collapsibleTabs.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/skins.vector.legacy.js/collapsibleTabs.js b/resources/skins.vector.legacy.js/collapsibleTabs.js index 3fc0a11b3..d94413cce 100644 --- a/resources/skins.vector.legacy.js/collapsibleTabs.js +++ b/resources/skins.vector.legacy.js/collapsibleTabs.js @@ -45,6 +45,8 @@ function init() { // call our resize handler to setup the page rAF( $.collapsibleTabs.handleResize ); + // When adding new links, a resize should be triggered (T139830). + mw.hook( 'util.addPortletLink' ).add( $.collapsibleTabs.handleResize ); return this; }; $.collapsibleTabs = {