Modal window with ContentElement = region is displaying and working properly in a normal application without template. but if use the template then the modal window popup in very small size. Any other changes is required in the region or the modal window settings when use it in the templates please. I am using the latest version 15.2.62.
(07-14-2022, 05:31 AM)pgnair Wrote: Modal window with ContentElement = region is displaying and working properly in a normal application without template. but if use the template then the modal window popup in very small size. Any other changes is required in the region or the modal window settings when use it in the templates please. I am using the latest version 15.2.62.
Setting IWModalWindow->Autosize = false might work with templates.
(07-14-2022, 05:31 AM)pgnair Wrote: Modal window with ContentElement = region is displaying and working properly in a normal application without template. but if use the template then the modal window popup in very small size. Any other changes is required in the region or the modal window settings when use it in the templates please. I am using the latest version 15.2.62.
Hi Alex
Sorry for the delayed reply.
PFA
Thanks
Pramod
2 changes were necessary to make it work flawlessly in this example:
- Include the IWRegion1 anywhere inside the template (i.e. add the {%IWRegion1%} tag)
- Set IWRegion1.StyleRenderOptions.UseDisplay := True, so the rendering engine will use the "display" style attribute to control the region visibility.
For clarity: the difference between "display" and "visibility" is that setting "display: none" causes the control's calculated width and height to be zero, meaning that it doesn't occupy any space in the page when not visible. On the contrary, setting "visibility: hidden" will make the control invisible but it still occupies space in the page.
(07-14-2022, 05:31 AM)pgnair Wrote: Modal window with ContentElement = region is displaying and working properly in a normal application without template. but if use the template then the modal window popup in very small size. Any other changes is required in the region or the modal window settings when use it in the templates please. I am using the latest version 15.2.62.
Hi Alex
Sorry for the delayed reply.
PFA
Thanks
Pramod