reveal container size determines progress bar width

This commit is contained in:
Hakim El Hattab 2015-01-06 09:32:21 +01:00
parent 0e0a4ec6e6
commit 21d034bffe

View file

@ -2323,7 +2323,7 @@
// Update progress if enabled // Update progress if enabled
if( config.progress && dom.progressbar ) { if( config.progress && dom.progressbar ) {
dom.progressbar.style.width = getProgress() * window.innerWidth + 'px'; dom.progressbar.style.width = getProgress() * dom.wrapper.offsetWidth + 'px';
} }