Closed ems107 closed 1 year ago
Man thank you for all those awesome PRs. I'm currently at the middle of the migration of the component to maui. I have created the new sample app and it's working fine on Android. Nevertheless, I don't when I will be able to merge all those and finish the migration since I have a lot of work right now. My guess is probably a month or so.
Don't worry, review it and merge it when you can. Thank you for sharing this repo, I wish I had found it earlier.
Hi I am currently debugging the ios MAUI version of the collection view, and so was going through your PRS. I noticed that only the android implementation is done. Unfortunately I cannot merge an incomplete implementation.
integrated in next version
I think this is related to this issue #76
From what I've seen debugging, in the
ScrollToCurrentItem()
method of Android Renderer, Control.MeasuredWidth will always be 0 when the height is greater than width (and offset will always be negative).But when the width is greater than height,
OnPreDraw()
will callScrollToCurrentItem()
one more time, this time with values in the width and height that are used.So the problem here is that
ScrollToCurrentItem()
never is called with height and width values when the height is greater than width.With the changes, inside the
OnLayout()
override,base.OnLayout()
is called beforeComputeItemSize()
so the Control will have height and width values whenScrollToCurrentItem()
is evaluated.Before changes:
After changes: