We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SFComboBox text cut off on iOS

Thread ID:

Created:

Updated:

Platform:

Replies:

149977 Dec 16,2019 10:49 PM UTC Dec 18,2019 01:01 PM UTC Xamarin.Forms 1
loading
Tags: SfComboBox
Donald Messerli
Asked On December 16, 2019 10:49 PM UTC

I have an SFComboBox on a page with other controls.  It is fine under Android. On iOS the text showing the current selection is cut off.



Here is the XAML...

<Style TargetType="combobox:SfComboBox">
                <Setter Property="FontFamily" Value="OpenSans-Regular.ttf#Open Sans"/>
                <!--Setter Property="BackgroundColor" Value="{StaticResource Controls}"/-->
            </Style>
            <Style TargetType="inputLayout:SfTextInputLayout">                
                <Setter Property="ContainerBackgroundColor" Value="{StaticResource Controls}"/>
                <Setter Property="ContainerType" Value="Filled"/>
            </Style>

<inputLayout:SfTextInputLayout Grid.Row="0" Grid.ColumnSpan="2" Hint="State">
                    <combobox:SfComboBox x:Name="State" AutomationId="State" HorizontalOptions="StartAndExpand" TextSize="Small" BackgroundColor="#00000000" DataSource="{Binding States}" SelectedItem="{Binding SelectedState}">
                        <combobox:SfComboBox.HeightRequest>
                            <OnPlatform
                                x:TypeArguments="x:Double"
                                Android="60"
                                WinPhone="60"
                                iOS="30" />
                        </combobox:SfComboBox.HeightRequest>
                    </combobox:SfComboBox>
                </inputLayout:SfTextInputLayout>

Hemalatha Marikumar [Syncfusion]
Replied On December 18, 2019 01:01 PM UTC

Hi Donald,

Greetings from Syncfusion. 
 
We checked the reported behavior with SfTextInputLayout and SfComboBox Controls. Please let us know is there any specific reason to set StartAndExpand as SfComboBox’s HorizontalOptions?  
 
We have suspected that StartAndExpand will be a reason for cropping the text in SfComboBox. We have also ensured this by changing by FillAndExpand and it works fine. Based on that we have modified the 
sample which is available for download in below 

Please check with the above sample and let us know if you have any concerns. 
 
Regards, 
Hemalatha M. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon