xamarin/Xamarin.Forms

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

オープン

#4,695 opened on 2018/12/10

 (9 件のコメント) (4 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)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 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド