mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Remove viewBox from SVG, not needed.
Bug: 63590 Change-Id: Ia1e85441389377cab2720b5410cbf602a42fafe0
This commit is contained in:
parent
030c2512b1
commit
64fdebe496
|
@ -148,7 +148,6 @@
|
|||
$thumbnail = $( '<svg>' )
|
||||
.attr( {
|
||||
xmlns: 'http://www.w3.org/2000/svg',
|
||||
viewBox: '0 0 ' + SIZES.portraitImage.w + ' ' + SIZES.portraitImage.h,
|
||||
width: SIZES.portraitImage.w,
|
||||
height: SIZES.portraitImage.h
|
||||
} )
|
||||
|
@ -177,9 +176,6 @@
|
|||
$thumbnail = $( '<svg>' )
|
||||
.attr( {
|
||||
xmlns: 'http://www.w3.org/2000/svg',
|
||||
viewBox: '0 0 ' + SIZES.landscapeImage.w + ' ' + ( thumbnail.height > SIZES.landscapeImage.h ) ?
|
||||
SIZES.landscapeImage.h :
|
||||
thumbnail.height,
|
||||
width: SIZES.landscapeImage.w + 3,
|
||||
height: ( thumbnail.height > SIZES.landscapeImage.h ) ?
|
||||
SIZES.landscapeImage.h :
|
||||
|
|
Loading…
Reference in a new issue