mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-24 07:34:11 +00:00
renderer: Remove attributes don't set them to ''
IE doesn't appear to update/redraw the SVG image element when Setting its clip-path attribute to '', not removing it. This is problematic as the attribute is always set to a default value (in the createThumbnail function) before the preview is laid out. Bug: T160237 Change-Id: I4559ff5018b8f4ecf06f6f5d9462a999d9726b94
This commit is contained in:
parent
9a94300858
commit
c10c3c3771
BIN
resources/dist/index.js
vendored
BIN
resources/dist/index.js
vendored
Binary file not shown.
BIN
resources/dist/index.js.map
vendored
BIN
resources/dist/index.js.map
vendored
Binary file not shown.
|
@ -623,7 +623,7 @@ function layoutPreview( preview, layout ) {
|
|||
|
||||
if ( flippedY && hasThumbnail ) {
|
||||
popup.find( 'image' )[ 0 ]
|
||||
.setAttribute( 'clip-path', '' );
|
||||
.removeAttribute( 'clip-path' );
|
||||
}
|
||||
|
||||
if ( flippedY && flippedX && hasThumbnail && isTall ) {
|
||||
|
|
Loading…
Reference in a new issue