Commit 54e44ef4 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

add missing condition for recalculating scale

parent 96b1ee9c
......@@ -1471,7 +1471,7 @@
// No point in calculating scale if the only possible
// 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
scale = Math.min( size.presentationWidth / size.width, size.presentationHeight / size.height );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment