OXID Community Forum

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

Thread: cloud-zoom-lens border problem


Reply
 
Thread Tools Display Modes
#Top   #1  
Old 04-25-2012, 02: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

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
Reply With Quote
#Top   #2  
Old 04-25-2012, 02:35 PM
Hebsacker's Avatar
Hebsacker Hebsacker is offline
Moderator
Join Date: Feb 2009
Location: Freie Republik Hohenlohe
Posts: 11,641
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...)

https://bugs.oxid-esales.com
__________________
Ray
www.stahlwarenhaus-hebsacker.de______________._.__Tipps zur Forensuche
www.haller-stahlwaren.de____________________._____Tipps zum Forum
_________________________________________._____Forum für Dummies
Reply With Quote
Reply

Bookmarks

Tags
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-20-2012 11:10 PM
MouseOver Schriftfarbe und Border im IE8 Transparent statt Weiss Malibu Templates und Design 3 03-13-2012 06:01 PM
Cloud Zoom schmaiki Module 33 01-29-2012 12:00 PM
problem with zoom images fredman11 Newbies 5 12-20-2011 01:22 PM
border-right & left bis untel basti84 Templates und Design 4 03-20-2011 07:11 PM

All times are GMT +1. The time now is 04:22 PM.