xamarin/Xamarin.Forms

Scrolling not OK for Editor with Autosize=TextChanges inside scrollview inside grid (iOS)

Open

#4,695 opened on Dec 10, 2018

 (9 comments) (4 reactions) (0 assignees)C# (1,926 forks)batch import
e/5 :clock5:help wantedm/high impact :black_large_square:p/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

Putting a growing (AutoSize=TextChange) Editor within a scrollview within a grid will cause the following problem. When the bottom of the vidible area is reached and you hit Enter/new line, the cursor will dissappear below the visible area. You will manually have to scroll down in order to see what you are Writing.

This is NOT the case on Android or UWP.

Steps to Reproduce

Create a contentpage with the following content

<Grid>
   <Grid.RowDefinitions>
      <RowDefinition Height="*"/>
      <RowDefinition Height="200"/> 
   </Grid.RowDefinitions>
   <ScrollView Grid.Row="0">
         <Editor AutoSize="TextChanges"/>
   </ScrollView>
   <Label Grid.Row="1" Text="Random text" VerticalOptions="FillAndExpand" BackgroundColor="Blue"/>
</Grid>

Run and see what happens when you reach the bottom end of the visible area.

Expected Behavior

Autoscrolled so that the user can see what he is typing.

Actual Behavior

No scroll is made. Cursor dissappears under screen.

Basic Information

  • Version with issue: V 3.4.0
  • Last known good version: Don't know
  • IDE: VS 2017 15.9.3
  • Platform Target Frameworks:
    • iOS: 12.1
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices: Tested on iPhone 6

Screenshots

iphone6

Reproduction Link

Contributor guide