View Full Version : DHTML Window Widget - centering problem

05-02-2007, 07:33 PM
1) Script Title: DHTML Window Widget

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

3) Describe problem:
Great script! However I have one problem with the centering feature (using center=1).

It seems that it works fine the first time the popup link is clicked, the widget gets centered on screen. However if I close it, and reclick the same link, the widget appears but gets positioned off center (somewhere abit towards the bottom right).

FYI I'm using a 22" widescreen monitor on 1680x1050 resolution. Reducing the res to 1024*768 doesn't help either.

Thanks in advance for the help.

05-03-2007, 05:13 AM
Does the problem occur for you with the DD demos as well, or just on your own page. If the later, please post a link to the page on your site that contains the problematic script so we can check it out.

05-03-2007, 06:21 AM
My bad, there might just be a bug with dhtmlwindow.js. Try the attached version instead.

05-03-2007, 07:58 AM
It works perfectly now. Thanks alot for your effort!