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

wrap_content height not working as excpected

Thread ID:

Created:

Updated:

Platform:

Replies:

143763 Apr 4,2019 08:36 AM UTC Apr 16,2019 09:35 AM UTC Android 4
loading
Tags: SfAutoComplete
Alex
Asked On April 4, 2019 08:36 AM UTC

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

Muneesh Kumar G [Syncfusion]
Replied On 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. 


Alex
Replied On 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.

Muneesh Kumar G [Syncfusion]
Replied On 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. 


Muneesh Kumar G [Syncfusion]
Replied On 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.

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