Skip to content

Commit

Permalink
Probably this should use real JavaScript that actually works; I don’t…
Browse files Browse the repository at this point in the history
… know. I’m no expert.
  • Loading branch information
Wilto committed Oct 7, 2014
1 parent 4dfc8d8 commit 4e97f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/picturefill.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

if ( pf.lengthEl.offsetWidth <= 0 ) {
// Something has gone wrong. `calc()` is in use and unsupported, most likely. Default to `100vw` (`100%`, for broader support.):
pf.lengthEl.style.cssText = doc.documentElement.offsetWidth;
pf.lengthEl.style.width = doc.documentElement.offsetWidth + "px";
}

return pf.lengthEl.offsetWidth;
Expand Down

0 comments on commit 4e97f8d

Please sign in to comment.