xamarin/Xamarin.Forms

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

Aperta

#4695 aperta il 10 dic 2018

 (9 commenti) (4 reazioni) (0 assegnatari)C# (1926 fork)batch import
e/5 :clock5:help wantedm/high impact :black_large_square:p/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor