Maintain Vision Window Zoom

Is there a way to maintain the same zoom level on a vision window that is set in designer? In order for my page layout to all fit, I set the zoom in designer to 50% for that specific window and it fits perfectly. However, it obviously doesn't maintain that zoom level in the published version.

I think the best practice is to design for your smallest screen size and scale up when necessary. Upscaling is easier than downscaling.

Either way, you can control it to a degree with java uiScale, see here

1 Like

I basically have 4 web browser components on one screen in a multi view and cant see all necessary data within the web browser unless its a certain size.

Vision's overall zoom is a designer only concept intended only to help position components (and, in my opinion, an antipattern you should basically never use). You cannot apply that same notion of zooming to the runtime session; the code to do so is literally not there in the runtime Vision client.

I'll echo @dkhayes117's point overall though - design small and let the system scale up.

I also don't really understand the problem as you've stated it, but a solution might be to override the zoom level in each individual web browser component, via scripting.

I must be misunderstanding what we are talking about here. The zoom feature I'm aware of is really useful for positioning, but obviously, it doesn't persist in the designer's preview mode, let alone a client session.

With regard to that zoom, I could see arguing that ctrl-P or the alignment tool offer more precision for components that share dimensional attributes, and snap to grid is clearly the best choice for aligning paths, but for aligning templates or shapes with mismatched dimensions, zoom is great. Perfect alignment is a simple matter of zooming in and counting grid squares.

If that's the feature we're talking about, I'm curious why it would be considered an antipattern that should never be used?

First, as a disclaimer, I have never had the job of actually implementing anything real in Vision. So any opinions henceforth are not the official position of IA, do not have any bearing on future Vision feature development, etc.

That said, my opinion is mostly based on the fact that people invariably try to do silly things like pixel-perfect window layouts. Specifically, window layouts where they start at one device's final screen resolution, subtract X pixels for the OS decoration at the top and bottom, lay everything out just so, get really attached to the pixel perfect layout they painstakingly created in the Designer and then get upset that all that work is 'wasted' when inevitably something isn't exactly right and stuff ends up resizing anyways.

I would basically always lean on the alignment tools, the stacking tools, explicit positioning, or even the dreaded grid before I tried to nudge things around while zoomed in. I usually forget zoom exists entirely until someone's complaining about its weird behaviors :smile:

This is what I rely on even when I use zoom. Zoom simply makes the five by five grid easier for me to see. :rofl: