Repository navigation
Description
Current behavior
I have a page in my uno project. In UWP everything is just fine and every page is working as expected. But in one of my pages where I show some information to the user, the page gets an extremely high width (tested in WASM) and it gets out of the window border. In order to see the page fully, I need to zoom out via the browser's zooming tool.
However there is a fun fact here:
I used a visual state manager. This visual state manager acts just fine and responds to window size changes and applies what should be applied, however, the the page still uses more width,
Expected behavior
I expect the page to be stretched to the parent frame and window as it's happening in UWP.
How to reproduce it (as minimally and precisely as possible)
Firstly run the UWP application in DEBUG mode and from the start page hit the "LoadTestAnswer" button. this button will load some dummy data:



As you can see, the UI is pretty responsive and neat.
However if you do the same to the WASM project you'll notice that something is wrong:
As you can see, although the page reacts to the implemented Visual State Manager, the actual page does not fit itself to the frame which is kinda odd.
Environment
- [x ] Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
- Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
- Uno.SourceGenerationTasks
- Uno.UI.RemoteControl / Uno.WinUI.RemoteControl
- Other:
Nuget Package Version(s):
Affected platform(s):
- iOS
- Android
- WebAssembly
- WebAssembly renderers for Xamarin.Forms
- macOS
- Skia
- WPF
- GTK (Linux)
- Tizen
- Windows
I have not tested this on other platforms, I can not tell if this issue exists on other platforms or not.
IDE:
- [x ] Visual Studio 2019 (version: latest)
Anything else we need to know?
- I wasn't able to do any AOT compilation
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone.



Activity
ryan-seifi commentedon Feb 3, 2021
uwp.mp4
wasm.mp4
francoistanguay commentedon Feb 4, 2021
Special mention and kudos for the IMPRESSIVE quality of your bug report. We'll have the team look at it asap and keep you posted.
Thank you for taking the time to properly file this, it's beyond appreciated.
12/10!
carldebilly commentedon Feb 4, 2021
This looks like the result of an exception during the layouting. On wasm, a lot of exceptions are not catched because of a performance issue.
Please press F12 and check the console for error messages.
ryan-seifi commentedon Feb 4, 2021
@carldebilly
localhost-1612320307231.log
Here is a dump from my console while running in Debug and navigating through pages. I took a look at it and honestly I didn't see anything problematic.
MartinZikmund commentedon Feb 4, 2021
@mohsens22 I noticed the results page is wrapped in a
ScrollViewer, it seems addingHorizontalScrollMode="Disabled"to it fixes the problem. Can you test on your side please, as a workaround?jeromelaban commentedon Feb 4, 2021
Also note that
Pivotmay show aScrollViewerissue (there's one in the template). You can try overriding thePivotcontrol template and see if removing theScrollViewerin the template helps.MartinZikmund commentedon Feb 4, 2021
From my debugging, it seems that
SfChartgets Infinite available width inMeasureOverride, whereas on UWP it always gets only the width equal to the window sizeryan-seifi commentedon Feb 4, 2021
@MartinZikmund How can we fix it?
ryan-seifi commentedon Feb 4, 2021
@jeromelaban I am not using any Pivot, I use a tab view from the Community Toolkit.
ryan-seifi commentedon Feb 4, 2021
I fixed the issue by setting
HorizontalAlignment="Stretch"and disabling the horizontal scroll viewer in the grid.2 remaining items
github-actions commentedon Jul 29, 2025
Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.
MartinZikmund commentedon Jul 29, 2025
This works correctly in Skia Renderer targets
github-actions commentedon May 3, 2026
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.