Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] On maximize, content of the WinUI window doesn't resize automatically. Manual resizing does it well. #1612

Closed
egvijayanand opened this issue Jul 9, 2021 · 4 comments
Assignees

Comments

@egvijayanand
Copy link
Contributor

Description

On maximize, the content of the WinUI window doesn't resize automatically. Manual window resizing does it well.

Steps to Reproduce

  1. Create a new dotnet Maui project and set WinUI as the startup project
  2. Build and run the project
  3. Try to maximize the window, the content of the window doesn't resize automatically. Refer screenshot.
  4. Whereas manually resizing the window, does resize the content to fit the window

Expected Behavior

Content of the window should resize and fit into the window like how the manual resizing works

Actual Behavior

Window content doesn't fit into the window

Basic Information

  • Version with issue: .NET 6 Preview 5
  • Last known good version: NA
  • IDE: VS2019 16.11 Preview 2.0
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
    • WinUI: Target SDK 10.0.19041 (running on Windows 10 21H1)
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Screenshots

WinUI-Maximize

Reproduction Link

Workaround

@egvijayanand
Copy link
Contributor Author

Not fully resolved (in .NET 6 Preview 6), when resized, the inner page content responds to resize action only after crossing a threshold limit for both width and height.

To simulate the issue, add a button with both its Horizontal and Vertical options set to CenterAndExpand, build and run the project, then try resizing the window. The expected output would be that button has to be in the center irrespective of its size.

But here the button would respond, by aligning itself to the center of the screen, only after crossing a certain threshold. And on the other side, when the window size goes below that limit, the button would disappear from the viewing area.

@hartez hartez self-assigned this Jul 15, 2021
@hartez
Copy link
Contributor

hartez commented Jul 15, 2021

#1676 might fix this.

@egvijayanand
Copy link
Contributor Author

Thanks for the update @hartez, will verify once it is released.

@hartez
Copy link
Contributor

hartez commented Aug 23, 2021

Confirmed fixed with the latest on the main branch.

@hartez hartez closed this as completed Aug 23, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Feb 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants