- Home
- Forum
- Xamarin.Forms
- Problem with EnableAutoSize property
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
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:
(OR)
Please find the patch assemblies alone from below location:
https://syncfusion.com/Installs/support/patch/19.2.0.44/1215428/F167303/SyncfusionPatch_19.2.0.44_1215428_7162021114705935_F167303.zip
(OR)
Please find the NuGet from below location:
https://syncfusion.com/Installs/support/patch/19.2.0.44/1215428/F167303/SyncfusionNuget_19.2.0.44_1215428_7162021114705935_F167303.zip
Assembly Version: 19.2.0.44
Disclaimer:
Note: Please clear the NuGet cache, before using the latest one.
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.
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.
- 2 Replies
- 2 Participants
-
MH Mark Harrison
- Jul 15, 2021 08:49 PM UTC
- Jul 27, 2021 01:13 PM UTC