SfTextInputLayout control expands beyonds expected width on IOS and Mac Catalyst

Hi there,

I have the following layout:

  • ContentPage
  • ScrollView
  • VerticalStackLayout (Margin 20,0,20,0)
  • Grid
    • Col1: Image
    • Col2: Label
    • Col3: SfTextLayout with embedded Entry

This works fine in Windows and on the Android simulator. When I use the iPhone simulator, the SfTextInputStyle extends beyond the dimensions. The problem is worse on Mac Catalyst. In my screenshots, I've shown an SfTextInputStyle outside the grid, an SfTextInputLayout in the grid with the SfTextInputLayout and the same grid but with the Entry on its own. You can see the behaviour is different. Is this me, or is there a problem?

Windows:

SfTextInputLayout_Windows_crop.jpg

Android:

SfTextInputLayout_Android_crop.jpg

IOS (iPhone)

SfTextInputLayout_iPhone_crop.jpg

Mac Catalyst:

SfTextInputLayout_MacCatalyst_crop.jpg

The code for the two grids (only for comparison) is below:

<Grid ColumnSpacing="5" >

     <Grid.ColumnDefinitions>
        <ColumnDefinition Width="24" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>

    <Image Source="add_bk.png" HeightRequest="20" Grid.Column="0" VerticalOptions="Center" >
         <Image.GestureRecognizers>
              <TapGestureRecognizer Tapped="prefix_Tapped" />
         </Image.GestureRecognizers>
    </Image>
    <Label Text="+44" TextColor="Grey" FontSize="18" Grid.Column="1" VerticalOptions="Center"/>
    <sf:SfTextInputLayout Grid.Column="2"
              Hint="Please enter your phone number"
              ErrorText="Phone number is not valid"
              x:Name="phoneField"
              IsHintAlwaysFloated="False">
        <Entry Text="011123456789" Grid.Column="2" x:Name="embeddedPhoneEntry" />
    </sf:SfTextInputLayout>
<Grid>

<Grid ColumnSpacing="5" >
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width="24" />
         <ColumnDefinition Width="Auto" />
         <ColumnDefinition Width="*" />
     </Grid.ColumnDefinitions>

     <Image Source="add_bk.png" HeightRequest="20" Grid.Column="0" VerticalOptions="Center" >
         <Image.GestureRecognizers>
              <TapGestureRecognizer Tapped="prefix_Tapped" />
         </Image.GestureRecognizers>
     </Image>
    <Label Text="+44" TextColor="Grey" FontSize="18" Grid.Column="1" VerticalOptions="Center"/>
    <Entry Text="011123456789" Grid.Column="2" x:Name="standalonePhoneEntry" />
</Grid>

6 Replies 1 reply marked as answer

KS Karl Southern September 20, 2023 08:15 AM UTC

Sorry, I should have included the versions. Both Syncfusion.Maui.Core and Syncfusion.Maui.Inputs are on version 23.1.36



AK Arunachalam Kandasamy Raja Syncfusion Team September 21, 2023 09:30 AM UTC

Hi Karl,

 

Thank you for reaching out to Syncfusion support.

 

We have carefully reviewed the provided code snippet and created the sample based on the code snippet. We were not able to reproduce the reported issue at our end. For your reference, we have added the tested sample to the attachment. Please take a look at the attachment and verify whether the issue can be reproduced on your side. If not, please make any necessary modifications to replicate the problem. Once done, kindly share the sample with us and provide details about which iOS version you are using. This will allow us to conduct a more comprehensive investigation of the issue.

 

Regards,

Arunachalam K


Attachment: TextInputLayoutMaui184633_d8955103.zip

Marked as answer

KS Karl Southern replied to Arunachalam Kandasamy Raja September 22, 2023 10:24 AM UTC

I can't reproduce the issue with the code snippet even after applying the modifications imposed by my SfTextInputLayout defaults in Styles.xaml.



BV Brundha Velusamy Syncfusion Team September 25, 2023 12:11 PM UTC

Hi Karl,

 

Could you please provide a sample that replicates the reported issue? This will be helpful for us to assist you further and provide a possible solution at the earliest.

 

Regards,

Brundha V



KS Karl Southern October 16, 2023 09:33 PM UTC

I'm so sorry for the late reply.


We revised the original layout to get something working and assumed it was something we were doing. We are now some way beyond where we were when I 



AJ AhamedAliNishad JahirHussain Syncfusion Team October 17, 2023 01:07 PM UTC

Hi Karl,

 

Based on your latest update, we confirm that the issue has been resolved on your end. If you have any other queries, please let us know the details.


Regards,

Ahamed Ali Nishad.


Loader.
Up arrow icon