We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 361b032 commit e76e0a9Copy full SHA for e76e0a9
src/progress.js
@@ -122,7 +122,12 @@
122
//set progress bar container size and offset
123
progressElementContainer.style.left = targetElementOffset.left + 'px';
124
progressElementContainer.style.top = targetElementOffset.top + 'px';
125
- progressElementContainer.style.width = targetElementOffset.width + 'px';
+ //if targetElement is body set to percent so it scales with browser resize
126
+ if (targetElement.nodeName == 'BODY') {
127
+ progressElementContainer.style.width = '100%';
128
+ } else {
129
+ progressElementContainer.style.width = targetElementOffset.width + 'px';
130
+ }
131
132
if (this._options.overlayMode) {
133
progressElementContainer.style.height = targetElementOffset.height + 'px';
0 commit comments