From 61558af56f50a984e30edd5533aa9707a3ea929a Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Fri, 23 Oct 2020 09:57:49 -0700 Subject: [PATCH] Fix logic in collapsibleTabs code Follow up to 6d967ed4a8c Add the missing ! to check that the portal is hidden rather than visible to restore the correct logic. Bug: T71729 Change-Id: I29f6f5e1e6adf3d6d9795cbdabcc152c5d5ac28f --- resources/skins.vector.legacy.js/vector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/skins.vector.legacy.js/vector.js b/resources/skins.vector.legacy.js/vector.js index 5ad2728..3e08635 100644 --- a/resources/skins.vector.legacy.js/vector.js +++ b/resources/skins.vector.legacy.js/vector.js @@ -27,7 +27,7 @@ function init() { .on( 'beforeTabCollapse', function () { var expandedWidth; // If the dropdown was hidden, show it - if ( mw.util.isPortletVisible( cactionsId ) ) { + if ( !mw.util.isPortletVisible( cactionsId ) ) { mw.util.showPortlet( cactionsId ); // Now that it is visible, force-render it virtually // to get its expanded width, then shrink it 1px before we