Troubleshooting
Why a Unified Comfort Panel web client shows scrollbars
Short answer
On V17 Update 7 the panel-integrated web client has no fit-to-window setting, so a screen configured for the panel's native resolution overflows any smaller browser viewport. From V18 Update 1 you set size-fit on the Main screen window. Staying on V17, run the browser fullscreen or fit the layout from a UI.GetClientInfo script.
On this page
- Why the panel web client shows scrollbars
- Why the simulator behaved differently
- The supported fix: size-fit from V18 Update 1
- Staying on V17 Update 7: fullscreen or kiosk mode
- Staying on V17 Update 7: fit by script with UI.GetClientInfo
- Screen windows and zoom
- Prove it on the panel
- The decision
- Questions asked
The scrollbars are not a defect in your project. In V17 Update 7 the Unified Comfort Panel's integrated web client serves every screen at its configured pixel size, and the panel runtime exposes no fit-to-window option; the "Adapt screen to window" switch you found lives in SIMATIC Runtime Manager and acts on the PC Runtime or Simulator, not on the panel. Any browser viewport smaller than the configured screen overflows and grows scrollbars, and nearly every viewport is smaller once the browser's own bars are counted. The fixes, in order: from V18 Update 1, set size-fit on the "Main" screen window; if the project stays on V17 Update 7, run the browser fullscreen on a matching monitor, or fit the layout from a script that reads the client through UI.GetClientInfo.
Why the panel web client shows scrollbars #
The V17 Update 7 web client is a 1:1 renderer: it delivers the screen at the resolution you configured, and the browser's job is merely to display it. Count what a real browser hands back. A screen built for the panel's 1920x1080 resolution on a 1080p office monitor does not receive that full area from a maximized window: the tab strip and address bar take roughly 130 px (a typical figure, so measure your own browser), leaving a viewport of about 1920x950. The screen needs 1080 px of height, the viewport offers 950 px, and 1080 − 950 = 130 px of overflow raises a vertical scrollbar.
That bar is about 17 px wide, so usable width falls to 1920 − 17 = 1903 px, short of the 1920 px the screen needs, and a horizontal scrollbar follows. Press F11 and the viewport becomes exactly 1920x1080: both bars disappear and nothing in the project changed. It is also an operator problem, not a cosmetic one: during a trip, the control someone needs can sit off-screen behind a bar.
Why the simulator behaved differently #
"Adapt screen to window" in SIMATIC Runtime Manager fits the runtime window for the PC Runtime or Simulator, which is why the same project scales correctly on your engineering PC. The panel-integrated runtime does not read that option; it serves web clients itself and, in V17 Update 7, offers no equivalent scaling setting anywhere in its own runtime settings. The working rule: verify web client scaling on the panel, never in the simulator.
The supported fix: size-fit from V18 Update 1 #
From V18 Update 1 the panel web client scales, and the lever is the size-fit setting of the "Main" screen window, the top-level window that hosts the screen's objects. The screen window object documents the two properties that matter here: "Size - fit" specifies whether the embedded screen is scaled to the size of the screen window, and "Zoom - factor" defines the size of the embedded screen. Enable size-fit on the "Main" screen window, compile and download, and the client area scales the screen to the viewport instead of overflowing it.
Budget the whole change: the panel then needs the image that matches the new version, and Unified Comfort Panel image updates when two versions are needed covers keeping the versions straight while the plant runs mixed ones. That is the price of the only supported autoscale on this platform.
Staying on V17 Update 7: fullscreen or kiosk mode #
When the project cannot move and each operator station has a monitor at or above the configured resolution, run the browser fullscreen: F11 by hand, or kiosk mode at launch (--kiosk on Chromium-based browsers) so nobody can leave it. The viewport then equals the display, the screen fits exactly, and because nothing is scaled the rendering stays pixel-sharp. This is the confirmed workaround and the one that adds no code; it scales nothing, so it applies only where the monitor carries the full configured resolution.
Staying on V17 Update 7: fit by script with UI.GetClientInfo #
For every other client, the documented hook is UI.GetClientInfo. The method returns information about the client's screen resolution, and its member PrimaryDisplayPixelRatio returns the ratio of screen pixels to DIU, the runtime's device-independent units. The pattern to implement:
- Read the client resolution and pixel ratio when the screen loads.
- Compute the fit factor: client width divided by the configured screen width.
- Select or resize the layout for that viewport and orientation.
- Re-run when the orientation changes, for example landscape to portrait on a tablet.
Run the arithmetic before promising anything. An application 1920 px wide on a client 1280 px wide fits at 1280 ÷ 1920 = 0.667, so every element renders at about 67 percent, readable on a desktop browser. The same screen on a phone 375 px wide fits at 375 ÷ 1920 ≈ 0.195, and a 40 px button shrinks to 40 × 0.195 ≈ 8 px, unusable with a finger.
That arithmetic matches the reported field experience: automatic fitting from the loaded event of every page works, needs a short delay so the page is ready, and annoys on smartphones. The reported alternative is a button on the home screen that adapts the application width to the client's horizontal resolution. Keep the handler short either way, because a long-running loaded script holds the screen, as Why an HMI Screen Freezes Until a Script Finishes shows. Implement against the API definition supplied with your engineering system and do not guess member names beyond the documented call. The decision from the numbers: auto-fit desktop and tablet clients; give phones their own layout instead of scaling the screen down to a fifth.
Screen windows and zoom #
Embedded screen windows need their own decision. Keep "Size - fit" engaged, "Fit Screen to Window" in the tool's wording, for windows that must not zoom, so the embedded screen scales to its window with no clipping and no bars. Where operators need zoom, set that resolution configuration to "None" and calculate the start zoom from the current screen dimensions, because "Zoom - factor" then fixes the embedded screen's size instead of the window. Verify both classes: non-zoomable windows show the whole screen with no scrollbars; zoomable windows open at a usable scale and still respond to manual zoom.
Prove it on the panel #
First confirm web access itself:
- Open the runtime settings of the Unified Comfort Panel.
- Expand "Remote access".
- Select "Web Client".
- Enable "Enable web access to runtime".
Then test the scaling you chose:
- Open the web client at every resolution and orientation the plant actually uses, not only the engineering office monitor.
- Walk the entire navigation path on each client, checking for scrollbars, clipped controls and unreadable text.
- After an image update or a re-download, repeat the pass; the runtime you tested before the change is not the one running now.
- Close spare web client sessions before measuring, because the connection ceiling is small.
The decision #
- The project can move: upgrade to V18 Update 1 or later, flash the matching image, and set size-fit on the "Main" screen window. That is the supported autoscale; take it.
- Pinned to V17 Update 7 with dedicated stations: fullscreen or kiosk mode on monitors that carry the configured resolution. No code, sharp rendering, done.
- Pinned to V17 Update 7 with mixed or small clients: UI.GetClientInfo on the loaded event with a short delay, fit factor equal to client width divided by screen width, and a separate layout for phones.
- In every case, keep non-zoomable screen windows on "Fit Screen to Window" and reserve "None" with a calculated start zoom for windows that must zoom.
Questions asked
How many web clients can connect to a Unified Comfort Panel at once?
Siemens' support portal states a maximum of 3 remote access operations on a Unified Comfort Panel, whatever mode each session runs in. When a maintenance laptop, a control-room browser and an engineering test session all target the same panel, close what you are not using before you blame scaling for a session that will not connect.
Does fullscreen mode help on a monitor smaller than the configured resolution?
No. Fullscreen only removes the browser's own bars; the viewport still equals the monitor's resolution, so on any display below the configured screen size the content overflows and the scrollbars come back. Below native resolution you need the V18 Update 1 size-fit setting or a script that reflows the layout; fullscreen is strictly a matching-monitor fix.
What does PrimaryDisplayPixelRatio return?
The ratio of the primary display's screen pixels to DIU, the runtime's device-independent units, delivered in the object that UI.GetClientInfo provides. A client reporting a ratio of 2 fits two physical pixels into each unit, so a layout sized in those units keeps its physical proportions across clients with different DPI settings.
Is there any scaling option in the V17 Update 7 runtime settings?
No. In the runtime settings, the Remote access pages enable the web client and stop there; no fit or scale option exists anywhere in the V17 Update 7 panel runtime, and Adapt screen to window belongs to SIMATIC Runtime Manager on the PC side. On V17 your only levers are the browser viewport and scripts.