jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/374800 )
Change subject: Don't start aligning section pairs until surfaces are ready
......................................................................
Don't start aligning section pairs until surfaces are ready
Change-Id: I87220a597cef7c91633c03fe2d655644fe702d5e
---
M modules/ui/mw.cx.ui.TranslationView.js
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
DLynch: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/ui/mw.cx.ui.TranslationView.js
b/modules/ui/mw.cx.ui.TranslationView.js
index e25c151..cbfc256 100644
--- a/modules/ui/mw.cx.ui.TranslationView.js
+++ b/modules/ui/mw.cx.ui.TranslationView.js
@@ -57,7 +57,6 @@
this.alignSectionPairs.bind( this ),
500
);
- $( this.getElementWindow() ).on( 'resize',
this.throttleAlignSectionPairs );
this.targetColumn.connect( this, {
titleChange: 'onTargetTitleChange'
} );
@@ -198,6 +197,8 @@
mouseover: this.onSurfaceMouseOver.bind( this ),
mouseout: this.onSurfaceMouseOut.bind( this )
} );
+
+ $( this.getElementWindow() ).on( 'resize',
this.throttleAlignSectionPairs );
};
mw.cx.ui.TranslationView.prototype.getTranslation = function () {
--
To view, visit https://gerrit.wikimedia.org/r/374800
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I87220a597cef7c91633c03fe2d655644fe702d5e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
Gerrit-Reviewer: DLynch <[email protected]>
Gerrit-Reviewer: Divec <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits