Results 1 to 2 of 2

Thread: dhtmlWindow modal little correction

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

    Default dhtmlWindow modal little correction

    1) Script Title:
    dhtmlWindow modal
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...dhtmlmodal.htm
    3) Describe problem:

    When the width of the content page (under the modal windows) is larger than the browser window, the mask (veil) under the dhtml window modal don't have then maximun width of the content page.
    So if we use the bottom scrollbar , we can access to the content page.

    I have mad a little modification to te script (modal.js) as (fisrt line 32):

    this.docheightcomplete=(d.standardbody.offsetHeight>d.standardbody.scrollHeight)? d.standardbody.offsetHeight : d.standardbody.scrollHeight
    this.docwidthcomplete=(d.standardbody.offsetWidth>d.standardbody.scrollWidth)? d.standardbody.offsetWidth : d.standardbody.scrollWidth
    //this.interVeil.style.width=d.docwidth+"px" //set up veil over page
    this.interVeil.style.width=this.docwidthcomplete+"px" //set up veil over page
    this.interVeil.style.height=this.docheightcomplete+"px" //set up veil over page

    thanks for your good script.

    Gabriel

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

    Default

    Thanks for sharing. I'll have to test out your code the next time the script is updated to see if it should be included as part of any update.

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
  •