Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Chris Hyzer on Nov 12, 2009 11:52
open dhtmlx forum
modal window not graying out whole screen

We have a long page, and a button at bottom which pops up a modal dialog. The gray disabled part of screen is at top. Under that buttons can be clicked on and form fields can be edited. How can we get the entire screen to be disabled? We have tried enableAutoViewport and attachViewportTo. I have an example I will post.

Thanks,
Chris Hyzer
University of Pennsylvania
Answer posted by Alex (support) on Nov 13, 2009 01:21
Please, provide the demo to reproduce the issue. 
Answer posted by Chris Hyzer on Nov 13, 2009 06:34
I emailed it to the support email address, did you get it?  I see the attach button, I will post here too
Attachments (1)
Answer posted by Alex (support) on Nov 13, 2009 07:30
Please, see attached sample. It demonstrates setModal and viewport usage.
Attachments (1)
Answer posted by Chris Hyzer on Nov 13, 2009 08:23
So if we have a long page, with no div wrapped around everything, then it will not gray everything out correctly.  If we have a dynamic page, we dont know the height, so how can we put the height in the div?  We should just be able to have a page, be scrolled down popup a modal dhtmlx and have it work.  Have you seen the jquery simplemodal plugin, that one just works, and my developers are frustrated with dhtmlx windows not working easily.  sorry, just needed to vent a little bit.  Thanks for the support thought.  ;)  thoughts?

Thanks!
Chris
Answer posted by Alex (support) on Nov 16, 2009 05:32

In this case you can try to use body as a viewport (default) and use the following style:

<style>

iframe.dhx_modal_cover_ifr, div.dhx_modal_cover_dv {

  height:3000px;
 }

</style>