Commit a2f97f93 authored by Mario Botsch's avatar Mario Botsch

fix vertical slides, which were messed up by whiteboard

parent 93959e25
......@@ -202,6 +202,9 @@ let RevealWhiteboard = (function(){
if (Reveal.getConfig().center || slide.classList.contains('center'))
{
// Reveal implements centering by adjusting css:top. Remove this.
slide.style.top = '';
// div for centering with flex layout
let vcenter = document.createElement("div");
vcenter.classList.add("v-center");
......@@ -1450,6 +1453,7 @@ let RevealWhiteboard = (function(){
// whenever slide changes, update slideIndices and redraw
Reveal.addEventListener( 'ready', setupSlides );
Reveal.addEventListener( 'ready', slideChanged );
Reveal.addEventListener( 'slidechanged', slideChanged );
......@@ -1513,9 +1517,6 @@ let RevealWhiteboard = (function(){
selectPenColor(penColors[0]);
selectPenRadius(2);
// put centered slides in flex-layout
setupSlides();
// hide buttons in print mode
if (printMode) buttons.style.display = 'none';
......
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