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] StateContainer - Constraints are not working properly #1118

Open
2 tasks done
zZHorizonZz opened this issue Mar 28, 2023 · 6 comments · Fixed by #1262
Open
2 tasks done

[BUG] StateContainer - Constraints are not working properly #1118

zZHorizonZz opened this issue Mar 28, 2023 · 6 comments · Fixed by #1262
Labels
area/layouts Issue/Discussion/PR that has to do with Layouts bug Something isn't working

Comments

@zZHorizonZz
Copy link

zZHorizonZz commented Mar 28, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

I have found multiple bugs but I think they can be caused by the same issue: Layouts ignore set constraints when used inside of state container as a state.

Layout Layout not inside of state container (working) Layout inside of the container (not working)
Grid + Label image image
ScrollView image image
ItemView image image

But if set a specific height to that layout it shows up as:
image

These all seem like they originate from how the bounds of the sub-layouts are calculated if they are calculated at all.

Expected Behavior

Images with expected behavior are in the previous paragraph.

Steps To Reproduce

I included an application repository where you can try working and not working layouts.

  1. We can just run without doing any edits why launches the app which is using a state container.
  2. If we want to see working constraints we can uncomment the Working Constraints region.
  3. If we want to see a working Scroll View we can uncomment the Working Scroll View region.
  4. If we want to see a working refresh view we can uncomment the Working Refresh View region.

Link to public reproduction project repository

https://github.com/zZHorizonZz/MAUI-Bug-Report-App

Environment

- .NET MAUI CommunityToolkit: 5.0.0
- OS: Windows 10 Enterprise (OS build 19044.2604)
- .NET MAUI: 7.0

Anything else?

No response

@zZHorizonZz zZHorizonZz added bug Something isn't working unverified labels Mar 28, 2023
@zZHorizonZz zZHorizonZz changed the title [BUG] StateContainer - Layout and bounds are not working as inteded [BUG] StateContainer - Constraints are not working as inteded Mar 28, 2023
@zZHorizonZz zZHorizonZz changed the title [BUG] StateContainer - Constraints are not working as inteded [BUG] StateContainer - Constraints are not working properly Mar 30, 2023
@natevarghese
Copy link

Any update on this?

@sfinn-qci
Copy link

We are also experiencing this issue on a project. Specifically, we are attempting to have a list view appear spanning the full screen for a state that is not spanning to fill the space.

@TheCodeTraveler
Copy link
Collaborator

The scrolling bug has been resolved in #1262

@pictos
Copy link
Member

pictos commented Jun 24, 2023

@brminnick should we close this issue then?

@TheCodeTraveler
Copy link
Collaborator

TheCodeTraveler commented Jun 24, 2023

should we close the issue then?

Nah, the main part of this reported issue is how StateContainer handles LayoutOption constraints. I've verified that behavior exists, but I need to confirm whether it's a MAUI bug or a Toolkit bug.

@vhugogarcia vhugogarcia added the area/layouts Issue/Discussion/PR that has to do with Layouts label Dec 7, 2023
@rohydro93
Copy link

Our projects are seeing this as well. Will this get attention anytime in the near future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/layouts Issue/Discussion/PR that has to do with Layouts bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants