PDA

View Full Version : Modal Windows always reopens as resizeable



Nomikon
04-21-2007, 07:30 AM
1) Script Title:
DHTML Modal window

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm

3) Describe problem:

This problem occurs when a modal window is opened a second time. I have found it on my own window-widget enabled pages (where the windows are defined as no resizable and not scrollable), but It's easy to replicate on the DD demos:

- Go to Modal demo (http://www.dynamicdrive.com/dynamici...demo-modal.htm)

- Click on Example 3 link (Open Age Verification Window)

The modal window goes just fine as "no resizable".

- Press any button to give away the window

- Click again the Example 3 link

The same modal window looks now as resizable, with the resize icon on bottom right corner (and maybe it's even scrollable... ).

I'm using latest version just downloaded of both Window and Modal widgets.

Best regards,
NK.

(I apologize for reposting this issue here. It seems this is the right thread to post it but he BUG-FIX subject in the another thread confused me and now I don't know how to move/delete it).

ddadmin
04-21-2007, 01:42 PM
I see what you mean. There is a minor bug within dhtmlwindow.js that's causing this. Just replace that file with the below version instead. Eventually I'll be updating the script on DD with this fix as well.

The bug effects both the modal window and the dhtml window widgets.

Nomikon
04-21-2007, 02:57 PM
Yes! It runs fine now. Thanks for your kind help,

NK.