Browse Source

reveal container size determines progress bar width

Hakim El Hattab 10 năm trước cách đây
mục cha
commit
21d034bffe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      js/reveal.js

+ 1 - 1
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';
 
 		}