add missing condition for recalculating scale
This commit is contained in:
parent
96b1ee9c39
commit
54e44ef4e2
1 changed files with 1 additions and 1 deletions
|
@ -1471,7 +1471,7 @@
|
||||||
|
|
||||||
// No point in calculating scale if the only possible
|
// No point in calculating scale if the only possible
|
||||||
// result is 1
|
// result is 1
|
||||||
if( config.minScale !== 1 || config.maxScale !== 1 ) {
|
if( scale !== -1 || config.minScale !== 1 || config.maxScale !== 1 ) {
|
||||||
// Determine scale of content to fit within available space
|
// Determine scale of content to fit within available space
|
||||||
scale = Math.min( size.presentationWidth / size.width, size.presentationHeight / size.height );
|
scale = Math.min( size.presentationWidth / size.width, size.presentationHeight / size.height );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue