diff options
author | Dan Dascalescu <ddascalescu+github@gmail.com> | 2012-11-13 01:47:02 -0800 |
---|---|---|
committer | Dan Dascalescu <ddascalescu+github@gmail.com> | 2012-11-13 01:47:02 -0800 |
commit | dfa98a11380ef2c45eaf1fda93145813f6cf25bd (patch) | |
tree | fd9c53b9305464dd0e1ebfca494fed5a925020aa /README.md | |
parent | 4c8938029db648d58b0e1e65e5fba70a8ff1d1ee (diff) | |
download | fosdem-2018-presentation-dfa98a11380ef2c45eaf1fda93145813f6cf25bd.tar fosdem-2018-presentation-dfa98a11380ef2c45eaf1fda93145813f6cf25bd.tar.gz |
Document vertical centering breaking backcompat
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?
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |