We are currently developing FLUID pages for a customer on PeopleSoft HCM 9.1. As they cannot benefit from the standard functionality delivered through Update Manager until they upgrade to PeopleSoft HCM 9.2, they have decided to provisionally implement FLUID through customisations.
When doing this, we have identified an issue in iPhone 6 by which the FLUID pages were not correctly scaling:
As you see, the text is barely readable. After some research, we have identified that standard pages deal with this scaling issue by using the following PeopleCode (normally in the component PostBuild event):
When doing this, we have identified an issue in iPhone 6 by which the FLUID pages were not correctly scaling:
As you see, the text is barely readable. After some research, we have identified that standard pages deal with this scaling issue by using the following PeopleCode (normally in the component PostBuild event):
Declare Function GetDefaultViewportSetting PeopleCode PTLAYOUT.FUNCLIB FieldFormula;
Declare Function SetViewport PeopleCode PTLAYOUT.FUNCLIB FieldFormula;
Local string &Viewport;
Local number &Pos;
&Viewport = GetDefaultViewportSetting();
If %Request. BrowserDeviceFormFactor = 0 And
%Request.BrowserPlatformClass = "ios" Then
&Pos = Find("minimal-ui", &Viewport);
If &Pos = 0 Then
&Viewport = &Viewport | ", minimal-ui";
End-If;
End-If;
SetViewport(&Viewport);
AddMetaTag("format-detection", "telephone=no");
The page now displays in a much better format: