07-25-2022, 10:38 PM
Hi,
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.
Please check the modified sample application
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.
Please check the modified sample application

