PDA

View Full Version : Image Thumbnail Viewer



Phiweb
04-02-2006, 06:17 PM
I've reported this bug before, but have had no reponse from anyone. Here is my previous report...

I've discovered a small problem when running this script in Firefox 1.5. When a thumbnail image is clicked to produce a new draggable larger image, then it is possible to drag the dragbar (including the close button) beneath the toolbars at the top of the browser. Thus it is nearly impossible to close the window. This doesn't happen in IE6. To see the effect, visit: http://homepage.ntlworld.com/colin.philip/phototest/

jscheuer1
04-02-2006, 11:30 PM
I see what you mean. Find this function and add the red parts:


function drag_drop(e){
if (ie&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx+"px"
crossobj.style.top=tempy+event.clientY-offsety>0?tempy+event.clientY-offsety+"px":0
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety>0?tempy+e.clientY-offsety+"px":0
}
return false
}

Phiweb
04-05-2006, 04:07 PM
Excellent! That did the trick. Thanks a lot for your hlep.

ddadmin
04-06-2006, 06:25 AM
Ah sometimes the first time doesn't register with me. I'll look at more closely and include John's fix the next time DD is updated.