mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Merge "MWSaveDialog: Another check to see if visual diff is still visible"
This commit is contained in:
commit
d21626e7bf
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue