mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 08:13:38 +00:00
Err: param required cant be empty/0 ThumbnailWidth
Bug: T277893 Change-Id: I5b440be10aa30527270515f6921596b8000a9f83
This commit is contained in:
parent
e2571cbacc
commit
b007aaa741
|
@ -162,9 +162,9 @@
|
|||
ratio = sampleHeight / sampleWidth;
|
||||
|
||||
cssWidth = this.calculateFittingWidth( boundingWidth, boundingHeight, sampleWidth, sampleHeight );
|
||||
cssHeight = Math.round( cssWidth * ratio );
|
||||
cssHeight = Math.max( 1, Math.round( cssWidth * ratio ) );
|
||||
|
||||
screenPixelWidth = cssWidth * this.devicePixelRatio;
|
||||
screenPixelWidth = Math.max( 1, cssWidth * this.devicePixelRatio );
|
||||
|
||||
bucketedWidth = this.findNextBucket( screenPixelWidth );
|
||||
|
||||
|
|
Loading…
Reference in a new issue