Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ModalWIdnow with Region in template
#5
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


Attached Files
.zip   ModalWindow.zip (Size: 54.81 KB / Downloads: 28)
Reply


Messages In This Thread
ModalWIdnow with Region in template - by pgnair - 07-14-2022, 05:31 AM
RE: ModalWIdnow with Region in template - by Alexandre Machado - 07-25-2022, 10:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)