mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-23 15:26:47 +00:00
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:
parent
56d776ca4b
commit
61558af56f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue