Bug 52430 - ListView with HasUnevenRows doesn't auto fit to Image created with ImageSource.FromStream
Summary: ListView with HasUnevenRows doesn't auto fit to Image created with ImageSourc...
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.4
Hardware: PC Windows
: High normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-02-10 02:38 UTC by Don Becker
Modified: 2017-11-14 00:25 UTC (History)
6 users (show)

Tags: bug, ios, listview, imagesource stream, row height, ac
Is this bug a regression?: ---
Last known good build:


Attachments
repro project (446.83 KB, application/zip)
2017-03-21 17:04 UTC, Jimmy [MSFT]
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 52430 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Don Becker 2017-02-10 02:38:09 UTC
When displaying an Image created with ImageSource.FromStream in a ListView with HasUnevenRows set to True, the row for the Image is not properly sized until I pull down on the list to refresh it.  The bottom border for the list item is rendered over the Image, and the Image content is overflowed off the screen, but you are not able to scroll to it.  Images displayed by using ImageSource.FromFile are displayed fine.  This only seems to be an issue on iOS for me.  I have created a project that takes a picture, and adds the results to a ListView using either FromFile or FromStream depending on what button is pressed to take the picture.

https://github.com/psyon/ListView-Image-Test
Comment 1 Jimmy [MSFT] 2017-03-21 17:04:04 UTC
Created attachment 20531 [details]
repro project

Thank you for filing this report! I was able to reproduce the issue described with the sample project linked to in the description. I am confirming this report so the team can investigate further.

This is occurring on iOS and with both RetainElement and RecycleElement. I tested with the following versions of Forms:

2.3.5.72-nightly    BAD
2.3.4-pre5          BAD
2.3.3.193           BAD

I am also attaching a modified version of the sample project to the report that removes the dependency on the media plugin and PCLStorage packages, and demonstrates that the issue does _not_ happen on Android.


### Steps to Reproduce
1. Run the attached iOS project
2. Press "FromStream() Demo"


### Expected Results
The images in each cell are fully visible. From the first page, press "FromFile() Demo" to see this result.


### Actual Results
The row heights do not expand so the images are cut off or blocked by the image in the following row.
Comment 2 David Ortinau [MSFT] 2017-06-17 22:04:59 UTC
Confirmed this is still the case on nightly 2.3.6.111
Comment 3 cjw1115@hotmail.com 2017-10-24 08:30:25 UTC
it's a bug about ListViewRenderer.
When I install Xamarin.Forms2.3.4,everything is ok.But when I install Xamarin.Fomrs2.4.0,the app will be crash when the itemsource changed frequently.
And I have made a git diff between 2.3.4 and 2.4.0 version about ListViewRenderer.cs,I found that the renderer is almost refactor.