Merge branch 'dev' into jh/print-optimize

This commit is contained in:
Jeroen Hermans 2020-12-20 17:44:20 +01:00 committed by GitHub
commit acafabf023
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 12826 additions and 2448 deletions

View file

@ -50,6 +50,12 @@ export default class Print {
await new Promise(requestAnimationFrame);
this.Reveal.layoutSlideContents( slideWidth, slideHeight );
slides.forEach( function( slide ) {
// Re-run the slide layout so that r-fit-text is applied based on
// the printed slide size
this.Reveal.slideContent.layout( slide );
});
// Batch scrollHeight access to prevent layout thrashing
await new Promise(requestAnimationFrame);
const slideScrollHeights = []