Problem with EnableAutoSize property

I have enabled the  EnableAutoSize property to expand on multiple items being selected but I am experiencing two issues:

1) When there are no items selected in the  SfComboBox, the min height of the SfComboBox doesn't fit the first selected token. When the property is set to False, the token fits without issue. I tried to set a Min Height but the property was ignored. (See screen Print 1)

2) When I add enough tokens to wrap onto the second line the header moves downwards. (See screen Print 2)

Can you please advise if there is anyway to solve these two issues?

Here is my code:

<inputLayout:SfTextInputLayout Hint="Country" ContainerType="Outlined" >

        <combobox:SfComboBox MultiSelectMode="Token" TokensWrapMode="Wrap" EnableAutoSize="True" IsSelectedItemsVisibleInDropDown="false">

            <combobox:SfComboBox.ComboBoxSource>

                <generic:List x:TypeArguments="x:String">

                    <x:String>Afghanistan</x:String>

                    <x:String>Akrotiri</x:String>

                    <x:String>Albania</x:String>

                    <x:String>Austria</x:String>

                    <x:String>UK</x:String>

                    <x:String>USA</x:String>

                </generic:List>

            </combobox:SfComboBox.ComboBoxSource>

        </combobox:SfComboBox>

    </inputLayout:SfTextInputLayout>


Attachment: Pics_2fe3ce45.zip

2 Replies

SS Suganya Sethuraman Syncfusion Team July 16, 2021 04:03 PM UTC

Hi Mark,

Greetings from Syncfusion.

We have analyzed the reported issue and fixed the issue. Please find the patch and code snippet from below link

Code Snippet
 
<StackLayout> 
    <inputLayout:SfTextInputLayout Hint="Country" ContainerType="Outlined" > 
        <combobox:SfComboBox MultiSelectMode="Token" 
                                 TokensWrapMode="Wrap" 
                                 EnableAutoSize="True" 
                                 IsSelectedItemsVisibleInDropDown="false"> 
            <combobox:SfComboBox.ComboBoxSource> 
                <generic:List x:TypeArguments="x:String"> 
                    <x:String>Afghanistan</x:String> 
                    <x:String>Akrotiri</x:String> 
                    <x:String>Albania</x:String> 
                    <x:String>Austria</x:String> 
                    <x:String>UK</x:String> 
                    <x:String>USA</x:String> 
                </generic:List> 
            </combobox:SfComboBox.ComboBoxSource> 
        </combobox:SfComboBox> 
    </inputLayout:SfTextInputLayout> 
</StackLayout> 


Please find the patch setup from below location:
 

Assembly Version: 19.2.0.44

Disclaimer:
 
Please note that we have created this patch for version 19.2.0.44 specifically, to resolve the issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received.

Note: Please clear the NuGet cache, before using the latest one.
 
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache   

The fix for the reported issues will be included in our weekly NuGet release which is expected to be rolled out on July 27, 2021. We appreciate your patience until then.

Regards,
Suganya Sethuraman.
 



SS Suganya Sethuraman Syncfusion Team July 27, 2021 01:13 PM UTC

Hi Mark,

Thanks for your patience.

We have included the fix in our latest Weekly NuGet release v19.2.0.49 which is available for download (https://www.nuget.org/ ). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.

Regards,
Suganya Sethuraman.
 


Loader.
Up arrow icon