[Plugin: WP Retina 2x] offsetWidth and offsetHeight in retina.js causing problems
-
The following code in
retina.js
was causing all of my images (retina-resized version available or not) to be wider and taller than they should be:that.el.setAttribute('width', that.el.offsetWidth); that.el.setAttribute('height', that.el.offsetHeight);
Commenting it out doesn’t seem to have had any negative effect, but I imagine this code is in there for a reason and I haven’t done extensive testing. Can you shed any light? And thanks for all the work on this!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: WP Retina 2x] offsetWidth and offsetHeight in retina.js causing problems’ is closed to new replies.