OXID Community Forum

> International Forums > Developers > cloud-zoom-lens border problem
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: cloud-zoom-lens border problem

Thread Tools Display Modes
#Top   #1  
Old 04-25-2012, 03:18 PM
gregor.kleiber gregor.kleiber is offline
Junior Member
Join Date: Feb 2012
Posts: 5
gregor.kleiber is on a distinguished road
Default cloud-zoom-lens border problem


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;
Oxid eShop Enterprise Edition 4.5.7_41909
Reply With Quote
#Top   #2  
Old 04-25-2012, 03:35 PM
Hebsacker's Avatar
Hebsacker Hebsacker is online now
Join Date: Feb 2009
Location: Freie Republik Hohenlohe
Posts: 11,661
Hebsacker is on a distinguished road
Default AW: cloud-zoom-lens border problem

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

www.stahlwarenhaus-hebsacker.de______________._.__Tipps zur Forensuche
www.haller-stahlwaren.de____________________._____Tipps zum Forum
_________________________________________._____Forum für Dummies
Reply With Quote


border, cloudzoomlens, problem

« Previous Thread | Next Thread »
Thread Tools
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem: Erstes Zoom/Gallery Bild ausgeben via ($picnr) modularte Allgemeines 1 03-21-2012 12:10 AM
MouseOver Schriftfarbe und Border im IE8 Transparent statt Weiss Malibu Templates und Design 3 03-13-2012 07:01 PM
Cloud Zoom schmaiki Module 33 01-29-2012 01:00 PM
problem with zoom images fredman11 Newbies 5 12-20-2011 02:22 PM
border-right & left bis untel basti84 Templates und Design 4 03-20-2011 08:11 PM

All times are GMT +1. The time now is 11:28 PM.