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

Change subject: Fix graphs overlapping with next line in readmode
......................................................................


Fix graphs overlapping with next line in readmode

Bug: T120707
Change-Id: I11c6cd1dc53e18449bd0c98a20d9767fa6d65153
(cherry picked from commit f23f4611079db4dd36f8afb1007e94c1456e9692)
---
M Graph.body.php
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/Graph.body.php b/Graph.body.php
index 8398de2..f50017f 100644
--- a/Graph.body.php
+++ b/Graph.body.php
@@ -156,7 +156,7 @@
                $width = property_exists( $data, 'width' ) && is_int( 
$data->width ) ? $data->width : 0;
                $height = property_exists( $data, 'height' ) && is_int( 
$data->height ) ? $data->height : 0;
                if ( $width && $height ) {
-                       $attribs['style'] = 
"width:{$width}px;height:{$height}px";
+                       $attribs['style'] = 
"min-width:{$width}px;min-height:{$height}px";
                }
 
                if ( $isPreview || !$wgGraphImgServiceUrl ) {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I11c6cd1dc53e18449bd0c98a20d9767fa6d65153
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Graph
Gerrit-Branch: wmf/1.27.0-wmf.8
Gerrit-Owner: Catrope <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: JGirault <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to