View Issue Details

IDProjectCategoryView StatusLast Update
0004435NoesisGUIStudiopublic2025-10-27 12:34
Reporterdstewart Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product VersionStudio_Beta 
Target VersionStudio_Beta 
Summary0004435: Fit All Function Doesn't Fill Viewport When A Page is Given a Non-Standard WidthxHeight
Description

It appears that currently, the "Fit All" view function at the top-right of the Stage (Ctrl+Shift+R), only works as expected when the Page size is set to 1920x1080.

With all other settings at their defaults, any other Dimension given to the Page, will always result in a Zoom Level of 116%, which in most cases, does not result in filling the available viewport.


Repro Steps:

1) Create a new Studio Project featuring a MainPage.xaml
2) Select the 'Page' (not the RootGrid) in the Navigator, and give it a custom width (For example: Width=512, Height=512)
3) Either press Ctrl+Shift+R OR press the 'Fit All' button in the top left of the Stage.

Observe how the Zoom Level of the Page maxes out at 116% instead of filling the viewport.

Expected Results: The "Fit All" functions zooms in the Page until it can either no longer fit Horizontally, or Vertically in the Viewport (whichever comes first)

PlatformAny

Activities

sfernandez

sfernandez

2025-10-27 12:07

manager   ~0011232

Last edited: 2025-10-27 12:09

The source of this "problem" is that we don't show any kind of adorner for the DesignWidth/DesignHeight, and the "Fit All" command is fitting the design size, not the root size.
I think it would be more clear and not perceived as an error if we render some adorner for the design size.

There's also a command, the 'F' shortcut, for fitting the selected element, so you can always select the root and fit that into the stage.

designadorner.png (104,704 bytes)   
designadorner.png (104,704 bytes)   
dstewart

dstewart

2025-10-27 12:34

developer   ~0011233

Last edited: 2025-10-27 12:34

Thanks for looking into this.

So, in my opinion, the "Fit All" command should actually more or less do what the Select Element + "F" currently do, but systematically do it as if the "Page Root" was selected.
Out of all the Zoom Modes, this is actually the one that I consider the most valuable, to the point where I would gladly sacrifice one of the other ones if it meant having this mode act this way.

So in summary, perhaps something like this:

1) "Fit All": Sets Stage to Maximum size that it can fit in the Viewport. (as described in intro above)

2) Element Selected + "F" Key Shortcut: Sets the individual Element to the Maximum size that it can fit in the Viewport.

3) "Reset Zoom": Sets Stage to either Actual Design Height/Design Width Resolution (including your suggestion on adding the adorners) OR Sets Stage to Actual Height/Actual Width Resolution.
What I would be most curious about here, is what is considered higher value between 'DesignTime' and 'Actual' in the context of editing files in a non-Play mode, and then, if there is any potential, or value in having this Reset Zoom perform different functions whether you are playing or not.

Issue History

Date Modified Username Field Change
2025-10-21 12:44 dstewart New Issue
2025-10-21 12:45 dstewart Description Updated
2025-10-21 12:46 jsantos Assigned To => sfernandez
2025-10-21 12:46 jsantos Status new => assigned
2025-10-21 12:46 jsantos Target Version => Studio_Beta
2025-10-27 12:07 sfernandez Note Added: 0011232
2025-10-27 12:07 sfernandez File Added: designadorner.png
2025-10-27 12:09 sfernandez Note Edited: 0011232
2025-10-27 12:10 sfernandez Status assigned => feedback
2025-10-27 12:34 dstewart Note Added: 0011233
2025-10-27 12:34 dstewart Status feedback => assigned
2025-10-27 12:34 dstewart Note Edited: 0011233