Fix displaying of transparent background

Fix checker background is not showed after resizing browser window.

Bug: T155913
Change-Id: Icc9236474d595c19566e294967a156865a3a1d31
This commit is contained in:
Phantom42 2017-01-22 02:50:05 +02:00
parent f285a576b7
commit 3a0ed7b4a0

View file

@ -177,7 +177,8 @@
MMVP.resize = function ( ui ) {
var imageWidths, canvasDimensions,
viewer = this,
image = this.thumbs[ this.currentIndex ].image;
image = this.thumbs[ this.currentIndex ].image,
ext = this.thumbs[ this.currentIndex ].title.ext;
this.preloadThumbnails();
@ -190,6 +191,7 @@
this.fetchThumbnailForLightboxImage(
image, imageWidths.real
).then( function ( thumbnail, image ) {
image.className = ext;
viewer.setImage( ui, thumbnail, image, imageWidths );
}, function ( error ) {
viewer.ui.canvas.showError( error );