Esanders has uploaded a new change for review. (
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(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation
refs/changes/00/374800/1
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: newchange
Gerrit-Change-Id: I87220a597cef7c91633c03fe2d655644fe702d5e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits