Results 1 to 4 of 4

Thread: Image Thumbnail Viewer

  1. #1
    Join Date
    Dec 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer

    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/

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,475
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I see what you mean. Find this function and add the red parts:

    Code:
    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
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Excellent! That did the trick. Thanks a lot for your hlep.

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •