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] toolkit:Popup ignores dimensions #1812

Open
2 tasks done
engalbertobortolato opened this issue Apr 12, 2024 · 3 comments
Open
2 tasks done

[BUG] toolkit:Popup ignores dimensions #1812

engalbertobortolato opened this issue Apr 12, 2024 · 3 comments
Labels
area/views Issue/Discussion/PR that has to do with Views bug Something isn't working unverified

Comments

@engalbertobortolato
Copy link

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

toolkit:Popup or VerticalStackLayout ignores Height and Width

Expected Behavior

A PopUp width 3000 pixel height and 3000 pixel width

Steps To Reproduce

  1. Open and run the solutution
  2. Press "Click me" button
  3. See the PopUp

Link to public reproduction project repository

https://github.com/engalbertobortolato/test-popup

Environment

- .NET MAUI CommunityToolkit: 8.0.1
- OS: Windows 11 Pro 23H2 
- .NET MAUI: 8.0.20

Anything else?

No response

@engalbertobortolato engalbertobortolato added bug Something isn't working unverified labels Apr 12, 2024
@vhugogarcia vhugogarcia added the area/views Issue/Discussion/PR that has to do with Views label Apr 13, 2024
@MitchBomcanhao
Copy link

MitchBomcanhao commented Apr 15, 2024

maybe a relevant bit of context - people complained that the action sheet wasn't working properly on windows.
so the xamarin/maui devs at some point simply hardcoded the height of windows popups to something like 300x250 (for reference - dotnet/maui#14829). is that the sort of sizing you're getting? you haven't quite explained what you meant by sizes being "ignored", so it is hard to understand what you meant without trying your project

@asi-evin
Copy link

Try setting "HeightRequest" and "WidthRequest" instead of "Height" and "Width".

@engalbertobortolato
Copy link
Author

Try setting "HeightRequest" and "WidthRequest" instead of "Height" and "Width".

ok, it works.

I am now trying to make the height and width of the popup dynamic based on the content.

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

No branches or pull requests

4 participants