ve.ui.MWGalleryDialog: Fix showing the search panel

Due to changes in StackLayout in OOUI v0.47.0 it is no longer able to
show a panel that was hidden using `.toggle( false )`.

Hiding it in this way seems to not have been needed anyway.

Bug: T337638
Change-Id: I81ed015986ed03fab1e65a7f3a826ac4296077b7
(cherry picked from commit 3109c82cc4)
This commit is contained in:
Bartosz Dziewoński 2023-05-29 01:27:51 +02:00 committed by Bartosz Dziewoński
parent 198b59b3ab
commit 4a4efcfe34

View file

@ -179,7 +179,7 @@ ve.ui.MWGalleryDialog.prototype.initialize = function () {
padded: true,
expanded: true,
scrollable: true
} ).toggle( false );
} );
this.editSearchStack = new OO.ui.StackLayout( {
items: [ this.editPanel, this.searchPanel ]
} );