mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-26 07:15:32 +00:00
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:
parent
1e950bb222
commit
11673b21ad
|
@ -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 ] );
|
||||
|
|
Loading…
Reference in a new issue