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

SfTextInputLayout TrailingView too small

Hello,

I've tried to implement a ComboBox inside a TextInputLayout with a button next to it to clear the input. Unfortunatly, I can't find a way to increase the size of the TrailingView and am stuck with a button only a few pixels in height. I tried to set HeightRequest and MinimumHeightRequest in XAML and tried to set the TrailingView directly as Button in the constructor. The TrailingView keeps to be just a few pixels high, not even high enough for a small text, because that would be unreadable. I am far from the nice big icons from the documentation.

Is there any way to increase the size of the TrailingView?

Regards
Martin

3 Replies

RA Rachel A Syncfusion Team July 30, 2019 12:33 PM UTC

Hi Martin, 
 
Greetings from Syncfusion. 
  
We would like to let you know that we have restricted the size of leading and trailing view width to 24 pixels and overall margin is 12 as per the specification of material design.However, we have already logged a feature request for this requirement, and it can be tracked through our feedback portal below. 
  
  
Please cast your vote to make it count. We will prioritize the features every release based on the demands and we do not have immediate plan to implement this feature since we committed with already planned work. So, this feature will be available any of our upcoming release. We appreciate your patience until then. 
 
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal.  
  
Regards, 
Rachel. 



MA Martin July 31, 2019 09:11 AM UTC

Hi Rachel,

thanks, but I think I have already a problem with the existing TrailingView. I've researched this a bit and it seems it has to do that I tried to use a Button in the TrailingView. The Button then will be sized extremly small and unreadable. Is there any other way to use this than adding the Icon with a Label and adding a TabGestureRecognizer to the label?

Regards,
Martin


RA Rachel A Syncfusion Team August 1, 2019 01:38 PM UTC

Hi Martin, 
 
As we have mentioned earlier, the width of the trailing view is 24 pixels by default and overall margin is 12 as per the specification of material design. We cannot increase the size more than the above specified limit of the leading or trailing view. If you increase the size of the button more than the above limit, it will shrink within the trailing view size. We have already consider this as a feature request (feedback) and you can track the feature progress from the above link. We appreciate your patience until then. 
 
Regards, 
Rachel. 


Loader.
Up arrow icon