Merge "Use more consistent background image scaling"

This commit is contained in:
Gabriel Wicke 2014-10-15 22:02:41 +00:00 committed by Gerrit Code Review
commit f5fbffb8ca
1 changed files with 2 additions and 1 deletions

View File

@ -379,7 +379,8 @@ class MathMathML extends MathRenderer {
$class = $classOverride;
}
$style = 'background-image: url(\''. $url. '\'); background-repeat: no-repeat; background-size: contain;';
// TODO: move the common styles to the global stylesheet!
$style = 'background-image: url(\''. $url. '\'); background-repeat: no-repeat; background-size: 100% 100%;';
$this->correctSvgStyle( $this->getSvg(), $style );
if ( $class ) { $attribs['class'] = $class; }
if ( $style ) { $attribs['style'] = $style; }