aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2019-01-07 14:41:45 +0100
committerGitHub <noreply@github.com>2019-01-07 14:41:45 +0100
commit65938f388b01d843e53e3ac6046eb7d6f7a84feb (patch)
treea5eb43f68b0024dc3085ba42b4c7ecda964c86e5
parentb645828707cd9752055f2e2c237f977207c4ea73 (diff)
parentee98f13dd97ca3d2e08e04a0bf89ab3225d07f66 (diff)
downloadperl-software-in-gnu-guix-65938f388b01d843e53e3ac6046eb7d6f7a84feb.tar
perl-software-in-gnu-guix-65938f388b01d843e53e3ac6046eb7d6f7a84feb.tar.gz
Merge pull request #1188 from sanand0/master
Display .stretch images in overview mode. Fix #1187
-rw-r--r--js/reveal.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index f3f4ae1..f01358e 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1765,10 +1765,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;
}