SetCustomViewport method: Utils class
Syntax
SetCustomViewport(ViewportText)
Description
Use the SetCustomViewport method to set the viewport to a custom size.
Parameters
| Parameter | Description |
|---|---|
|
ViewportText |
Specifies the viewport attributes as a String value. |
Returns
None
Example
Local PT_PAGE_UTILS:Utils &oUtils = create PT_PAGE_UTILS:Utils();
If (%Request.GetParameter("CUSTOMVIEWPORT") <> "") Then
&oUtils.SetCustomViewport(&oUtils.GetDefaultViewport() | ",height=device-height");
Else
&oUtils.SetDefaultViewport();
End-If;