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. Image for the cookie policy date

wrap_content height not working as excpected

When setting height to wrap_content and run this Application on a Device like a Samsung Galaxy S7 the height of the sfautocomplete ist about 3x the height it should be.

I've attached a sample project an the Screenshot.

Attachment: App7_167fe3a6.rar

4 Replies

MK Muneesh Kumar G Syncfusion Team April 9, 2019 01:11 PM UTC

Hi Alex, 
 
Greetings from Syncfusion, we have checked the reported issue "wrap_content height not working as expected" from our side and we have modified the provided sample and give the height of the AutoComplete control as 15db to solve this problem as per the below code snippet.  
 
Code snippet 
<com.syncfusion.autocomplete.SfAutoComplete
        android:layout_width="match_parent"
        android:layout_height="15dp"/>
 
 
 
Please find the modified sample from the below link. 
 
 
Please check and let us know if you have any concern on this. 
             
Thanks, 
Muneesh Kumar G. 



AL Alex April 9, 2019 01:17 PM UTC

This is only a workaround. Not a solution. Because if i set 15dp to the EditText Controls they are much to small but i want them to be the same Size with same dp values.


MK Muneesh Kumar G Syncfusion Team April 11, 2019 12:40 PM UTC

Hi Alex, 
 
We have logged issue report with "SfAutoComplete and Editext height are different when we set control height as WrapContent in AXML". Please find the feedback link for this issue from below.  
 
 
The fix for the reported issue will be available on April 16, 2019. 
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal. 
 
Regards, 
Muneesh Kumar G. 



MK Muneesh Kumar G Syncfusion Team April 16, 2019 09:35 AM UTC

Hi Alex,  
 
Thanks for your patience,  
 
We have fixed the reported issue "SfAutoComplete and EditText heights are different when we set the same DP value for both controls in AXML" and attached the patch file for your reference. Please find it from the below link. 
 
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment 
 
 

Assembly Version: 17.1.0.38

Disclaimer:
Please note that we have created this patch for version 17.1.0.38 specifically to resolve the following 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.
 
 
This fix will be included in our upcoming Volume 1 SP1 release which will be available in the mid of May 2019. 
 
Thanks, 
Muneesh Kumar G.

Loader.
Live Chat Icon For mobile
Up arrow icon