mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 08:13:38 +00:00
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:
parent
f285a576b7
commit
3a0ed7b4a0
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue