SfChat editor not expandable on Android

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



Attachment: GettingStarted_b436150b.zip

4 Replies

SV Suja Venkatesan Syncfusion Team February 23, 2022 02:50 PM UTC

Hi Matt, 

You can resolve the reported scenario by setting AutoSize property with value TextChanges for the custom SfChat.Editor as like below code snippet. 
 
Code snippet: 
<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> 
 

We have attached a modified sample in the below sample link for your reference. 

Please let us know if you need further assistance. 

Regards, 
Suja 



MW Matt Waldron February 25, 2022 02:02 AM UTC

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.



SV Suja Venkatesan Syncfusion Team February 25, 2022 03:24 PM UTC

Hi Matt, 

We are able to reproduce the reported issue on our end. We are in need of two more business days to properly validate this on our end. We will update you with further details on or before February March 1, 2022. We appreciate your patience until then. 

Regards, 
Suja 



KK Karthikraja Kalaimani Syncfusion Team March 1, 2022 05:44 PM UTC

Hi Matt, 

We are able to reproduce the issue without SfChat control. We have reported the issue to the framework team. We will update you once we get the proper solution from the framework side. 

Github link: https://github.com/xamarin/Xamarin.Forms/issues/15188 

Regards,
Karthik Raja

Loader.
Up arrow icon