Window overlay for modal

Hi there,

Could you tell me which functions sets the size of the black overlay for the windows when you set modal to true?

I’m working on a fix to get the window centered with scroll bars. I just have the overlay left but I can find it where you get set the size.
:smiley:
Thanks

Hi,

the “modal” area occupies the viewport of the dhtmlxWindows. If the viewport is default (document body) and page has scrolls, there could be problems as body size can be less than visual page size. For this reason, it would be better to attach viewport to the “overall” container (container that includes all other elements of the page):

dhtmlxWindows/samples/02_viewports/03_render_as.html

You are the man. It worked.

Thank you for your help.