Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
fix IE8 fatal failing with unknown CSS sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Mar 19, 2015
1 parent 3fba68d commit d1f5a1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/picturefill.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@

pf.lengthEl.style.width = "0px";

pf.lengthEl.style.width = length;
try {
pf.lengthEl.style.width = length;
} catch ( e ) {}

doc.body.appendChild(pf.lengthEl);

Expand Down

0 comments on commit d1f5a1f

Please sign in to comment.