From dfa98a11380ef2c45eaf1fda93145813f6cf25bd Mon Sep 17 00:00:00 2001 From: Dan Dascalescu Date: Tue, 13 Nov 2012 01:47:02 -0800 Subject: [PATCH 1/2] Document vertical centering breaking backcompat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Essentially, slides have variable height now. This is not normally visible, but with transitions that have a non-transparent background, like `cube` or `page`, it is: http://lab.hakim.se/reveal-js/?transition=cube Before, slides had a fixed height, which means that presentations designed with that assumption in mind will look very different now. Another aspect that I bumped into is that I used the slide's height to dynamically size images to fill the remainder of the space from the heading to the footer, like this (stripped to the essence):           bigImage.style.height = section.offsetHeight - bigImage.offsetTop + 'px'; Alternatively, is there an easy way to restore the previous functionality? --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6c07a33a..0d6e3aca 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,8 @@ Reveal.initialize({ }); ``` +Note that the new default vertical centering option will break compatibility with slides that were using transitions with backgrounds (`cube` and `page`). To restore the previous behavior, set `center` to `false`. + ### Dependencies Reveal.js doesn't _rely_ on any third party scripts to work but a few optional libraries are included by default. These libraries are loaded as dependencies in the order they appear, for example: From a5956bc71d8613c3d2a3b5b155a83fd12f23f0e9 Mon Sep 17 00:00:00 2001 From: harriha Date: Thu, 15 Nov 2012 11:24:09 +0200 Subject: [PATCH 2/2] Fix bug with switching to night theme When switching to 'night' theme, the first slide was shown instead of correctly linking to the Themes slide. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 0ba0e519..c0161791 100644 --- a/index.html +++ b/index.html @@ -164,7 +164,7 @@ Beige - Simple - Serif - - Night - + Night - Default