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

SwipeView Items could not be centered vertically when content is multirow grid #22581

Open
inimirpaz opened this issue May 22, 2024 · 4 comments
Labels
area-controls-swipeview SwipeView migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 platform/iOS 🍎 t/bug Something isn't working
Milestone

Comments

@inimirpaz
Copy link

Description

Screenshot 2024-05-22 alle 17 26 38

Just like shown in the screenshot above, when the content of a SwipeView is a multirow Grid items are not properly centered. This was not the case with Xamarin.Forms.

Steps to Reproduce

No response

Link to public reproduction project repository

https://github.com/inimirpaz/maui_issues/tree/swipeview_issue

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@inimirpaz inimirpaz added the t/bug Something isn't working label May 22, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@PureWeen PureWeen added platform/android 🤖 platform/iOS 🍎 area-controls-swipeview SwipeView migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert labels May 22, 2024
@PureWeen
Copy link
Member

@inimirpaz if you place your Swipeitems inside a layout and set a width and/or height on that layout, does that let you position them? Or even just stick them inside a Grid instead of just having a label?

@PureWeen PureWeen added this to the Backlog milestone May 22, 2024
@inimirpaz
Copy link
Author

inimirpaz commented May 23, 2024

@PureWeen just sticking them inside a Grid does not work. Adding a HeightRequest to the label itself (or to any layouting parent) does "work". Only problem is, this is not a viable option because you may not know the height beforehand. (Or are you suggesting to bind to the height of the inner element?)

Edit: as a workaround, one could move the element inside a Grid in the second row with RowDefinitions="*, Auto, *".

@inimirpaz
Copy link
Author

Has this been verified by the team?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-swipeview SwipeView migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants