lib/resources/assets/revealjs-redhat/lib/js/debug/reveal.js in hyla-1.0.7.pre.6 vs lib/resources/assets/revealjs-redhat/lib/js/debug/reveal.js in hyla-1.0.7.pre.7
- old
+ new
@@ -39,10 +39,14 @@
height: 700,
// Factor of the display size that should remain empty around the content
margin: 0.1,
+ // Top and Left margins to reposition the slides
+ marginTop: '',
+ marginLeft: '',
+
// Bounds for smallest/largest possible scale to apply to content
minScale: 0.2,
maxScale: 1.5,
// Display controls in the bottom right corner
@@ -1527,18 +1531,24 @@
}
else {
// Prefer zooming in desktop Chrome so that content remains crisp
if( !isMobileDevice && /chrome/i.test( navigator.userAgent ) && typeof dom.slides.style.zoom !== 'undefined' ) {
dom.slides.style.zoom = scale;
+ dom.slides.style.marginTop = config.marginTop;
+ dom.slides.style.marginLeft = config.marginLeft;
transformSlides( { layout: '' } );
}
// Apply scale transform as a fallback
else {
// dom.slides.style.left = '50%';
- // dom.slides.style.top = '50%';
+ // dom.slides.style.top = '44%';
// dom.slides.style.bottom = 'auto';
// dom.slides.style.right = 'auto';
- transformSlides( { layout: 'translate(-50%, -50%) scale('+ scale +') translate(50%,50%)' } );
+ dom.slides.style.marginTop = config.marginTop;
+ dom.slides.style.marginLeft = config.marginLeft;
+ dom.slides.style.marginBottom = 'auto';
+ dom.slides.style.marginRight = 'auto';
+ transformSlides( { layout: 'translate(-50%, -50%) scale('+ scale +') translate(50%, 50%)' } );
}
}
// Select all slides, vertical and horizontal
var slides = toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR ) );
\ No newline at end of file