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
This commit is contained in:
jdlrobson 2020-10-23 09:57:49 -07:00
parent 56d776ca4b
commit 61558af56f
1 changed files with 1 additions and 1 deletions

View File

@ -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