Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Madhuri on Mar 19, 2009 10:17
open dhtmlx forum
Dhtmlxwindow positioning issue

Hi,

i have a lengthy form which has links in it. On clicking any of the links a dhtmlxwindow is opened.

Issue is when the user scrolls down the page and clicks a link at the bottom of the page...the dhtmlx window opens but he can not see it as it is at the top of the page which is not visible. He will have to scroll back to the top to view it.

Is there any way to position the dhtmlx window on the portion of the page which is visible.

Thanks in advance.
Madhuri

Answer posted by Alex (support) on Mar 19, 2009 10:48

The  vertical position of the window is set in the createWindow method - the second parameter.

So, you can open the window in a necessary possition. 

Answer posted by Erkan on May 08, 2009 06:10
Vertical position does not work properly for IE for lenghty and scrolled pages. It is fine for others browsers. Is there a fix for that?
Answer posted by Erkan on May 08, 2009 07:15
When I track down the issue I recognised that vp.offsetHeight in dhtmlxwindows.js returns different values for IE and the others in case of the viewport is bound to document.body. I hope this may help to bring a fix.
Answer posted by Alex (support) on May 08, 2009 07:43

Hello

Could you please provide the sample that demonstrates the issue