When using a custom template for editor control, the editor expands vertical automatically as you input multi lines on iOS but NOT on Android. Please find the attached screenshot. Also sample project attached.
But with default SfChat editor I could not observe this issue.
SfChat: 19.4.0.53
X.Essentials: 1.7.1
X.Forms: 5.0.0.2337
Device: Android emulator Pixel 5 API 30
|
<Grid Grid.Row="0" Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<sfChat:ChatEditorView AutoSize="TextChanges" x:Name="chatEditor" >
<sfChat:ChatEditorView.Margin>
<OnPlatform x:TypeArguments="Thickness">
<On Platform="Android" Value="0,11,0,0" />
<On Platform="UWP" Value="0,11,0,0" />
<On Platform="iOS" Value="0,5.5,0,5.5" />
</OnPlatform>
</sfChat:ChatEditorView.Margin>
</sfChat:ChatEditorView>
</Grid> |
I tried AutoResize property as you suggested. That expands the chat editor but another issue came up.
New issue was that keyboard covered the chat editor partially when showing/hiding the keyboard repeatly.