From 5bd5ac67a4ddab7e5b2b1cb36b41be02a8a741e9 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 17 Aug 2012 00:40:12 -0400 Subject: [PATCH] fix bug that caused vertical stacks to shift unexpectedly in overview (closes #122) --- css/main.css | 1 + js/reveal.js | 4 ++-- js/reveal.min.js | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/css/main.css b/css/main.css index 9302c792..7f0555c0 100644 --- a/css/main.css +++ b/css/main.css @@ -259,6 +259,7 @@ body { } .reveal .controls a { + font-family: Arial; font-size: 0.83em; position: absolute; opacity: 0.1; diff --git a/js/reveal.js b/js/reveal.js index 3980416f..322d06e0 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1,5 +1,5 @@ /*! - * reveal.js 2.0 r18 + * reveal.js 2.0 r19 * http://lab.hakim.se/reveal-js * MIT licensed * @@ -544,7 +544,7 @@ var Reveal = (function(){ for( var j = 0, len2 = verticalSlides.length; j < len2; j++ ) { var vslide = verticalSlides[j], - vtransform = 'translate(0%, ' + ( ( j - indexv ) * 105 ) + '%)'; + vtransform = 'translate(0%, ' + ( ( j - ( i === indexh ? indexv : 0 ) ) * 105 ) + '%)'; vslide.setAttribute( 'data-index-h', i ); vslide.setAttribute( 'data-index-v', j ); diff --git a/js/reveal.min.js b/js/reveal.min.js index b7ed0fb6..50c95d99 100644 --- a/js/reveal.min.js +++ b/js/reveal.min.js @@ -1,5 +1,5 @@ /*! - * reveal.js 2.0 r18 + * reveal.js 2.0 r19 * http://lab.hakim.se/reveal-js * MIT licensed * @@ -35,7 +35,7 @@ for(var af=0,ad=ae.length;af'+ag.innerHTML+"";}}}}function G(){d.wrapper.classList.add("overview");var ad=Array.prototype.slice.call(document.querySelectorAll(k)); for(var ai=0,ag=ad.length;ai