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:
Sam Smith 2017-03-13 10:09:38 +00:00 committed by Baha
parent 9a94300858
commit c10c3c3771
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View file

@ -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 ) {