Results 1 to 3 of 3

Thread: DHTML Window widget - minimized window position

  1. #1
    Join Date
    Mar 2007
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default DHTML Window widget - minimized window position

    1) Script Title: DHTML Window widget (v1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/index.htm

    3) Describe problem:


    Hello DDforum,

    Is it possible to have a minimized window floated top-right corner instead of the default position bottom-left, and if more minimized windows has been created then have them floating next to each other (from top-right towards left) instead of the default stacking.

    Best regards Thomas

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

    Default

    Sure. Try finding the below two lines (separately) in dhtmlwindow.js:

    Code:
    t.style.left="10px" //left coord of minmized window
    t.style.top=dhtmlwindow.scroll_top+dhtmlwindow.docheight-(t.handle.offsetHeight*t.minimizeorder)-windowspacing+"px"
    to:

    Code:
    t.style.top="20px"
    t.style.left=dhtmlwindow.scroll_left+dhtmlwindow.docwidth-(t.handle.offsetWidth*t.minimizeorder)-windowspacing+"px"
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    Rodekode (11-16-2008)

  4. #3
    Join Date
    Mar 2007
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot
    It works like a charm now - DD rocks!

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
  •