aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorS Anand <root.node@gmail.com>2015-04-02 21:04:00 +0530
committerS Anand <root.node@gmail.com>2015-04-02 21:04:00 +0530
commitee98f13dd97ca3d2e08e04a0bf89ab3225d07f66 (patch)
tree46fb5d63cc29dc1b7f9a8262069b7686023df4a0 /js
parent8858ee75a5b5a74c4ed102555c7baaa0f5d29ecd (diff)
downloadperl-software-in-gnu-guix-ee98f13dd97ca3d2e08e04a0bf89ab3225d07f66.tar
perl-software-in-gnu-guix-ee98f13dd97ca3d2e08e04a0bf89ab3225d07f66.tar.gz
display .stretch images in overview mode
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 65ac29f..16d9e0f 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1195,10 +1195,15 @@
// 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');
return newHeight;
}