aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2015-01-06 09:32:21 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2015-01-06 09:32:21 +0100
commit21d034bffebc971b6ee75a07f59977db1f81dd74 (patch)
tree5e0cc67b29dcbd7e3250859d15f16d269494b8f8 /js
parent0e0a4ec6e6e5996c6619ec6ff5452c3017e1ca27 (diff)
downloadfosdem-2018-presentation-21d034bffebc971b6ee75a07f59977db1f81dd74.tar
fosdem-2018-presentation-21d034bffebc971b6ee75a07f59977db1f81dd74.tar.gz
reveal container size determines progress bar width
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 46b92b5..3c2b1c8 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2323,7 +2323,7 @@
// Update progress if enabled
if( config.progress && dom.progressbar ) {
- dom.progressbar.style.width = getProgress() * window.innerWidth + 'px';
+ dom.progressbar.style.width = getProgress() * dom.wrapper.offsetWidth + 'px';
}