jenkins-bot has submitted this change and it was merged.

Change subject: Initializes the zoom widget after page loading
......................................................................


Initializes the zoom widget after page loading

Bug: T145724
Change-Id: I310d5d6acc0db54a0ae97fbe8727549eec842692
---
M modules/page/ext.proofreadpage.page.edit.js
1 file changed, 8 insertions(+), 0 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/page/ext.proofreadpage.page.edit.js 
b/modules/page/ext.proofreadpage.page.edit.js
index 8d7b1fc..ca3d0b9 100644
--- a/modules/page/ext.proofreadpage.page.edit.js
+++ b/modules/page/ext.proofreadpage.page.edit.js
@@ -77,6 +77,7 @@
                        $editForm.find( '.prp-page-content' ).css( {
                                width: ''
                        } );
+                       withImageZoom( function () {} );
 
                        isLayoutHorizontal = false;
 
@@ -95,6 +96,7 @@
                        $container.css( {
                                height: $( window ).height() / 3 + 'px'
                        } );
+                       withImageZoom( function () {} );
 
                        isLayoutHorizontal = true;
                }
@@ -275,4 +277,10 @@
                addButtons();
        } );
 
+       // zoom should be initialized after the page is rendered
+       $( window ).load( function () {
+               initEnvironment();
+               withImageZoom( function () {} );
+       } );
+
 }( mw, jQuery ) );

-- 
To view, visit https://gerrit.wikimedia.org/r/311777
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I310d5d6acc0db54a0ae97fbe8727549eec842692
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: wmf/1.28.0-wmf.18
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Tpt <thoma...@hotmail.fr>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to