xamarin / Xamarin.Forms.CarouselView

41 stars 38 forks source link

CarouselView fails on android when CarouselView starts as hidden #33

Open kMaiSmith opened 7 years ago

kMaiSmith commented 7 years ago

When a carousel view starts as hidden a divide by zero exception is thrown regarding the following line since the view has no width or (presumably) position

https://github.com/xamarin/Xamarin.Forms.CarouselView/blob/52cc66eaa87eaf86aaa2b44ff90efbd6975d5aee/txt/src/carouselView/dev/Shared.Android/CarouselViewExtensions.cs#L267

BioTurboNick commented 6 years ago

Workaround: Set opacity to 0 and use LowerChild to send it to back.