Tpt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311769

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProofreadPage 
refs/changes/69/311769/1

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/311769
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I310d5d6acc0db54a0ae97fbe8727549eec842692
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Tpt <thoma...@hotmail.fr>

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

Reply via email to