ve.ui.MWSaveDialog: Work around save panel disappearing on iOS Safari as well

Same thing as Ifb49ede450cabdcd8303b298b62f2ac632809b53, for
a slightly different case that we missed.

Bug: T221289
Change-Id: I0ca287af87e1058620fbed75a50d40f01513a567
This commit is contained in:
Bartosz Dziewoński 2019-04-23 20:27:38 +02:00
parent 1e950bb222
commit 11673b21ad

View file

@ -437,6 +437,11 @@ ve.ui.MWSaveDialog.prototype.swapPanel = function ( panel, noFocus ) {
action.toggle( dialog.canReview );
} );
// Support: iOS
// HACK: iOS Safari sometimes makes the entire panel completely disappear (T221289).
// Rebuilding it makes it reappear.
OO.ui.Element.static.reconsiderScrollbars( panelObj.$element[ 0 ] );
mw.hook( 've.saveDialog.stateChanged' ).fire();
};
@ -754,6 +759,7 @@ ve.ui.MWSaveDialog.prototype.updateReviewMode = function () {
this.report.toggle( false );
}
// Support: iOS
// HACK: iOS Safari sometimes makes the entire panel completely disappear (T219680).
// Rebuilding it makes it reappear.
OO.ui.Element.static.reconsiderScrollbars( this.reviewPanel.$element[ 0 ] );