Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] [iOS] CollectionView doesn't support simple data entry form that uses Editor.AutoSize="TextChanges" #12532

Open
lafritay opened this issue Oct 19, 2020 · 0 comments

Comments

@lafritay
Copy link

lafritay commented Oct 19, 2020

Description

I have an incredibly simple CollectionView that is being used as a data entry form. When I try to use the Editor AutoSize="TextChanges" feature, things break. As the user types, once they hit a new line and the Editor needs to resize, the text they are editing scrolls out of view. This is what is shown in the sample. In my slightly more complicated production app, it scrolls so far out of view that the item view itself is destroyed (because it has scrolled so far) and it doesn't properly recreate when scrolled back to.

Steps to Reproduce

  1. In the attached sample, scroll to the bottom until you see the field labeled "TYPE INTO ME UNTIL YOU HIT A NEW LINE".
  2. Start typing. Before you hit a new line, it will function well and look like this:

Screen Shot 2020-10-19 at 4 05 10 PM

  1. Once you type enough that it has to wrap, the view will scroll so that the text you were typing is no longer in view:

Screen Shot 2020-10-19 at 4 05 27 PM

This happens each time the control needs to wrap. Also notice that other items above have been sized incorrectly (extra space below some of the input boxes).

Expected Behavior

Keep the same scroll position.

Actual Behavior

Text being entered scrolls out of view

Basic Information

  • Version with issue: XF 4.8.1560.
  • Last known good version: Unknown (probably never)
  • IDE: VS for Mac
  • Platform Target Frameworks:
    • iOS: Xamarin.iOS 14.0. Reproed on iOS 13.7
  • Nuget Packages: None
  • Affected Devices: IPhone simulators and physical devices

Screenshots

See above.

Reproduction Link

Bugs 2.zip

Workaround

I can switch to using AutoSize="Disabled" but that leads to a far inferior experience.

@lafritay lafritay added s/unverified New report that has yet to be verified t/bug 🐛 labels Oct 19, 2020
@samhouts samhouts added this to New in Triage Oct 19, 2020
@PureWeen PureWeen added this to Backlog in CollectionView via automation Oct 31, 2020
@PureWeen PureWeen added e/4 🕓 4 and removed s/unverified New report that has yet to be verified labels Oct 31, 2020
@PureWeen PureWeen moved this from New to Ready For Work in Triage Oct 31, 2020
@samhouts samhouts added this to To do in iOS Ready For Work Nov 3, 2020
@samhouts samhouts removed this from Ready For Work in Triage Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
CollectionView
  
Review Backlog
Development

No branches or pull requests

2 participants