commit
9c1615fff1
2 changed files with 17 additions and 0 deletions
|
@ -2104,6 +2104,7 @@
|
|||
dom.slides.style.height = size.height + 'px';
|
||||
|
||||
// Determine scale of content to fit within available space
|
||||
var oldscale =scale;
|
||||
scale = Math.min( size.presentationWidth / size.width, size.presentationHeight / size.height );
|
||||
|
||||
// Respect max/min scale settings
|
||||
|
@ -2169,6 +2170,13 @@
|
|||
|
||||
}
|
||||
|
||||
if( oldscale!==scale ){
|
||||
dispatchEvent( 'resize', {
|
||||
'oldscale': oldscale,
|
||||
'scale': scale,
|
||||
'size': size
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
updateProgress();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue