Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ben on Feb 07, 2009 16:11
open dhtmlx forum
Windows centerOnScreen with doctype strict does not work in IE7

I am opening a new question because I now have more details and I did not get a response from my previous support emails.

This basically says it all:
Windows centerOnScreen with doctype strict does not work in IE7

Also:
Windows centerOnScreen with doctype strict does not work in FF3 if we are scrolled down on a page and then click a link to load a new window. It centers it but its at the top of the page and we have to scroll up to see it.

It works fine in doctype "Traditional" mode.

Answer posted by dhxSupport on Feb 09, 2009 07:15
By default the viewport is document.body
Several browsers need to improve body's style by setting its width and height to 100%
In this case a window will become movable on all the available document.body's space.
Besides, there is no need for you to call any other methods that will affect the viewport. 
Answer posted on Feb 09, 2009 07:16
There were issues in your code because it did not take into account the scrolling offset.

Fixed code is in here:
http://www.dhtmlx.com/docs/products/kb/index.shtml?cat=recent&q=7698


Answer posted on Feb 09, 2009 07:18
But we still have issues with IE7 and your ieonclose fix which adds an input field to the end of the page.  It makes the page jump to the bottom on close (if the page scrolls) and also adds some space at the bottom since its adding an input field.
Answer posted by Alex (dhtmlx) on Feb 09, 2009 09:20
Please, provide the sample where we can recreate the issue at support@dhtmlx.com
Answer posted on Feb 09, 2009 09:28
Email sent.
Answer posted by Alex (support) on Feb 10, 2009 06:26
 Please see our replies sent from support@dhtmlx.com
Answer posted on Feb 10, 2009 07:07
We did not receive an email with the IE7 onclose fix.  It still jumps to the bottom of the page because you are focusing on a hidden input field.
Answer posted on Feb 10, 2009 07:14
Nevermind I got it and the fix worked.  The .js file you sent did not have the centerOnScreen fixes but it did fix the ieonclose issue.  Thanks.