Cloud-zoom-lens border problem

Hey,

just recognised, that the cloud-zoom-lens calculation is wrong.

If you slide in the top left corner of an image, a border side will disappear.

To fix this:

Delete the margin of .cloud-zoom-lens in oxid.css

Replace in cloudzoom.js:


var borderSubX = parseInt($('.cloud-zoom-lens').css('borderLeftWidth'),10)+parseInt($('.cloud-zoom-lens').css('borderRightWidth'),10);
var borderSubY = parseInt($('.cloud-zoom-lens').css('borderTopWidth'),10)+parseInt($('.cloud-zoom-lens').css('borderBottomWidth'),10);

if (x < 0) {
 x = 0;
} else if (x > (sImg.outerWidth() - cw)) {
 x = (sImg.outerWidth() - cw)-borderSubX;
}

 if (y < 0) {
  y = 0;
} else if (y > (sImg.outerHeight() - ch)) {
 y = (sImg.outerHeight() - ch)-borderSubY;
}

Would you mind to put this into the bugtracker?
(If this is a bug…)

https://bugs.oxid-esales.com

Check with this…CSS Zoom

Rino