Err: param required cant be empty/0 ThumbnailWidth

Bug: T277893
Change-Id: I5b440be10aa30527270515f6921596b8000a9f83
This commit is contained in:
seddon 2021-08-24 15:06:44 +01:00 committed by Jdlrobson
parent e2571cbacc
commit b007aaa741

View file

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