Bug 39450 - [Forms] ListView item shrinks / resizes when removing then adding Context Action in ViewCell OnBindindContextChanged.
Summary: [Forms] ListView item shrinks / resizes when removing then adding Context Act...
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.1.0
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-03-08 15:19 UTC by Al Clark [MSFT]
Modified: 2016-04-08 17:12 UTC (History)
8 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Screenshot of issue (88.50 KB, image/png)
2016-03-08 15:24 UTC, Al Clark [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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Al Clark [MSFT] 2016-03-08 15:19:13 UTC
--- Overview ---

ListView item is shrinking/vanishes when removing and adding Context Action programmatically in ViewCell OnBindindContextChanged. As my requirement, ContextAction remove and add happening frequently.

I'm currently only seeing this behaviour on iPad (simulator and device)  I don't seem to have the same issue on iPhone simulator.

--- Steps to Reproduce ---

1. Run the attached sample app
2. Scroll down


--- Expected behaviour ---

ListView items should show all red and full size.


--- Actual Behaviour ---

Scrolling down exhibits incorrectly sized items.


--- Additional Information ---

Microsoft Visual Studio Professional 2013
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.5.51650

Installed Version: Professional

LightSwitch for Visual Studio 2013 06177-004-0447006-02560
Microsoft LightSwitch for Visual Studio 2013

Microsoft Office Developer Tools for Visual Studio 2013 ENU 06177-004-0447006-02560
Microsoft Office Developer Tools for Visual Studio 2013 ENU

Team Explorer for Visual Studio 2013 06177-004-0447006-02560
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013 06177-004-0447006-02560
Microsoft Visual Basic 2013

Visual C# 2013 06177-004-0447006-02560
Microsoft Visual C# 2013

Visual C++ 2013 06177-004-0447006-02560
Microsoft Visual C++ 2013

Visual F# 2013 06177-004-0447006-02560
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker 06177-004-0447006-02560
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013 5.0.11001.0
For additional information, visit http://www.asp.net/

Common Azure Tools 1.0
Provides common services for use by Azure Mobile Services and Windows Azure Tools.

Microsoft Web Developer Tools 2013 2.0.40926.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

NuGet Package Manager 2.8.60723.765
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools 12.0.30919.1
Microsoft SQL Server Data Tools

Windows Azure Mobile Services Tools 1.0
Windows Azure Mobile Services Tools

Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin 4.0.0.1717 (1390b70)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android 6.0.0.35 (d300845)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS 9.3.99.33 (ea30b32)
Visual Studio extension to enable development for Xamarin.iOS.

==========

I have also tested against the following config with latest Forms 2.1.0.6524
Comment 1 Al Clark [MSFT] 2016-03-08 15:24:23 UTC
Created attachment 15308 [details]
Screenshot of issue

Screenshot
Comment 2 Samantha Houts [MSFT] 2016-03-10 20:46:15 UTC
Hi Alan! Can you please attach the sample app? Thanks!
Comment 4 Jason Smith [MSFT] 2016-03-11 10:25:54 UTC
Should be fixed in 2.2.0-pre1

As a side note doing it this way is absolutely murder on the mobile CPU. Im not sure I have a better solution for your immediate need but it is really painful on iOS because we need to swap out the cell.
Comment 5 Parmendra Kumar 2016-04-08 17:12:32 UTC
I have checked this issue with Xamarin.Forms 2.2.0-pre1 and its working fine.

Hence closing this issue.