aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2019-01-07 14:43:46 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2019-01-07 14:43:46 +0100
commit9712cc9ad64cda09306834250c8770d1e81b2856 (patch)
treec1edb7bc9a98d21413481532f5f45c5680310e21
parent65938f388b01d843e53e3ac6046eb7d6f7a84feb (diff)
downloadfreenode-live-2017-presentation-9712cc9ad64cda09306834250c8770d1e81b2856.tar
freenode-live-2017-presentation-9712cc9ad64cda09306834250c8770d1e81b2856.tar.gz
whitespace
-rw-r--r--js/reveal.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index f01358e..2442a5c 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1765,13 +1765,16 @@
// Change the .stretch element height to 0 in order find the height of all
// the other elements
element.style.height = '0px';
+
// In Overview mode, the parent (.slide) height is set of 700px.
// Restore it temporarily to its natural height.
element.parentNode.style.height = 'auto';
+
newHeight = height - element.parentNode.offsetHeight;
// Restore the old height, just in case
element.style.height = oldHeight + 'px';
+
// Clear the parent (.slide) height. .removeProperty works in IE9+
element.parentNode.style.removeProperty('height');