Merge "MWSaveDialog: Another check to see if visual diff is still visible"

This commit is contained in:
jenkins-bot 2018-02-16 17:15:28 +00:00 committed by Gerrit Code Review
commit d21626e7bf

View file

@ -719,7 +719,8 @@ ve.ui.MWSaveDialog.prototype.positionDiffElement = function () {
if ( this.panels.getCurrentItem() === this.reviewPanel ) {
setTimeout( function () {
dialog.withoutSizeTransitions( function () {
if ( dialog.diffElement && dialog.isVisible() ) {
// This is delayed, so check the visual diff is still visible
if ( dialog.diffElement && dialog.isVisible() && dialog.reviewModeButtonSelect.findSelectedItem().getData() === 'visual' ) {
dialog.diffElement.positionDescriptions();
dialog.updateSize();
}