From 21d034bffebc971b6ee75a07f59977db1f81dd74 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 6 Jan 2015 09:32:21 +0100 Subject: [PATCH] reveal container size determines progress bar width --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }