Vector should be notified by addPortletLink to collapsible where needed

Bug: T139830
Change-Id: Ibf17a3df7f9409a02f1a316d5da16b32fabcc5a2
This commit is contained in:
jdlrobson 2021-10-07 14:54:38 -07:00 committed by Jdlrobson
parent b1dd172a5f
commit ae28c427d6

View file

@ -45,6 +45,8 @@ function init() {
// call our resize handler to setup the page // call our resize handler to setup the page
rAF( $.collapsibleTabs.handleResize ); rAF( $.collapsibleTabs.handleResize );
// When adding new links, a resize should be triggered (T139830).
mw.hook( 'util.addPortletLink' ).add( $.collapsibleTabs.handleResize );
return this; return this;
}; };
$.collapsibleTabs = { $.collapsibleTabs = {