OXID Community Forum> cloud-zoom-lens border problem |
Login |
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Reply |
|
|
Thread Tools | Display Modes |
|
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: Code:
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 |
|||
|
__________________
Raywww.stahlwarenhaus-hebsacker.de______________._.__Tipps zur Forensuche www.haller-stahlwaren.de____________________._____Tipps zum Forum _________________________________________._____Forum für Dummies _________________________________________._____Theme-Styler |
||||
| Reply |
| Bookmarks |
| Tags |
| border, cloudzoomlens, problem |
| Thread Tools | |
| Display Modes | |
|
Nicht Sichtbar
|
|
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 |