Robert Vogel has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374558 )

Change subject: UEModulePDF: Fix for image width in PDF
......................................................................

UEModulePDF: Fix for image width in PDF

700px is a little too wide for an image in PDF page

Change-Id: I04ebd18b23df629eda69d8e202c861cd236abd18
ERM: #7305
---
M UEModulePDF/includes/PDFFileResolver.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/58/374558/1

diff --git a/UEModulePDF/includes/PDFFileResolver.php 
b/UEModulePDF/includes/PDFFileResolver.php
index cff18c1..55a13ac 100644
--- a/UEModulePDF/includes/PDFFileResolver.php
+++ b/UEModulePDF/includes/PDFFileResolver.php
@@ -117,8 +117,8 @@
                        $iWidth = $this->oFileObject->getWidth();
                        $this->oImgNode->setAttribute( 'width', $iWidth );
                }
-               if( $iWidth > 700 ) {
-                       $this->oImgNode->setAttribute( 'width', 700 );
+               if( $iWidth > 650 ) {
+                       $this->oImgNode->setAttribute( 'width', 650 );
                        $this->oImgNode->removeAttribute( 'height' );
 
                        $sClasses = $this->oImgNode->getAttribute( 'class' );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I04ebd18b23df629eda69d8e202c861cd236abd18
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: REL1_27
Gerrit-Owner: Robert Vogel <[email protected]>
Gerrit-Reviewer: ItSpiderman <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to